# Stackblitz Mcp

> MCP server for reading files from StackBlitz projects

- **Type:** MCP server
- **Install:** `agentstack add mcp-sxzz-stackblitz-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sxzz](https://agentstack.voostack.com/s/sxzz)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [sxzz](https://github.com/sxzz)
- **Source:** https://github.com/sxzz/stackblitz-mcp
- **Website:** https://stackblitz-mcp.sxzz.dev

## Install

```sh
agentstack add mcp-sxzz-stackblitz-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# stackblitz-mcp

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Unit Test][unit-test-src]][unit-test-href]

[MCP](https://modelcontextprotocol.io/) server for reading files from [StackBlitz](https://stackblitz.com/) projects. Enables AI to access file contents and project structure from StackBlitz reproduction repositories.

## Install

```bash
npm i -g stackblitz-mcp
```

## Usage

### Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "stackblitz": {
      "command": "npx",
      "args": ["-y", "stackblitz-mcp"]
    }
  }
}
```

### Claude Code

```bash
claude mcp add stackblitz -- npx -y stackblitz-mcp
```

### Cursor

Add to your `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "stackblitz": {
      "command": "npx",
      "args": ["-y", "stackblitz-mcp"]
    }
  }
}
```

## Tools

### `resolve_project`

Resolve a StackBlitz project URL or ID and return project metadata (title, description, preset, visibility, file count).

**Input:**

- `projectRef` (string) — Project ID or StackBlitz URL (e.g. `stackblitz-starters-rf7brvcm` or `https://stackblitz.com/edit/stackblitz-starters-rf7brvcm`)

### `list_files`

List files in a StackBlitz project as an ASCII tree, optionally filtered by path prefix.

**Input:**

- `projectRef` (string) — Project ID or URL
- `path` (string, optional) — Filter files by path prefix

### `read_file`

Read the contents of a file from a StackBlitz project.

**Input:**

- `projectRef` (string) — Project ID or URL
- `path` (string) — File path within the project

### `search_files`

Search for content within files of a StackBlitz project.

**Input:**

- `projectRef` (string) — Project ID or URL
- `query` (string) — Search query
- `regex` (boolean, default: `false`) — Treat query as regex
- `caseSensitive` (boolean, default: `false`) — Case-sensitive search
- `maxResults` (number, default: `50`) — Maximum number of results

## Resources

| URI Pattern                             | Description                 |
| --------------------------------------- | --------------------------- |
| `stackblitz://{projectId}/tree`         | File tree of a project      |
| `stackblitz://{projectId}/files/{path}` | Contents of a specific file |

## Sponsors

  
    
  

## License

[MIT](./LICENSE) License © 2026-PRESENT [Kevin Deng](https://github.com/sxzz)

[npm-version-src]: https://img.shields.io/npm/v/stackblitz-mcp.svg
[npm-version-href]: https://npmjs.com/package/stackblitz-mcp
[npm-downloads-src]: https://img.shields.io/npm/dm/stackblitz-mcp
[npm-downloads-href]: https://www.npmcharts.com/compare/stackblitz-mcp?interval=30
[unit-test-src]: https://github.com/sxzz/stackblitz-mcp/actions/workflows/unit-test.yml/badge.svg
[unit-test-href]: https://github.com/sxzz/stackblitz-mcp/actions/workflows/unit-test.yml

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sxzz](https://github.com/sxzz)
- **Source:** [sxzz/stackblitz-mcp](https://github.com/sxzz/stackblitz-mcp)
- **License:** MIT
- **Homepage:** https://stackblitz-mcp.sxzz.dev

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-sxzz-stackblitz-mcp
- Seller: https://agentstack.voostack.com/s/sxzz
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
