Read StackBlitz projects
from any AI assistant

An MCP server that gives AI assistants read-only access to file contents and project structure from StackBlitz reproductions. No authentication required.

npm i -g stackblitz-mcp
Get started

Setup

Add stackblitz-mcp to your AI tool of choice. Pick your editor below.

Claude Desktop

Docs

Config file location:

mac: ~/Library/Application Support/Claude/claude_desktop_config.jsonwin: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "stackblitz": {
      "command": "npx",
      "args": ["-y", "stackblitz-mcp"]
    }
  }
}

Claude Code

Docs

Run in your terminal:

claude mcp add stackblitz -- npx -y stackblitz-mcp

VS Code (Copilot)

Docs

Config file location:

workspace: .vscode/mcp.json
{
  "servers": {
    "stackblitz": {
      "command": "npx",
      "args": ["-y", "stackblitz-mcp"]
    }
  }
}

Cursor

Docs

Config file location:

project: .cursor/mcp.jsonglobal: ~/.cursor/mcp.json
{
  "mcpServers": {
    "stackblitz": {
      "command": "npx",
      "args": ["-y", "stackblitz-mcp"]
    }
  }
}

Windsurf

Docs

Config file location:

global: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "stackblitz": {
      "command": "npx",
      "args": ["-y", "stackblitz-mcp"]
    }
  }
}

JetBrains IDEs

Docs

Go to Settings > Tools > AI Assistant > Model Context Protocol (MCP), click Add, and configure a stdio server:

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

Tools

Four read-only tools for exploring StackBlitz projects. Pass a project URL or ID to any of them.

resolve_project

Resolve a StackBlitz project URL or ID and return project metadata.

ParameterTypeRequiredDescription
projectRefstringyesProject ID or StackBlitz URL

list_files

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

ParameterTypeRequiredDescription
projectRefstringyesProject ID or URL
pathstringnoFilter files by path prefix

read_file

Read the contents of a file from a StackBlitz project.

ParameterTypeRequiredDescription
projectRefstringyesProject ID or URL
pathstringyesFile path within the project

search_files

Search for content within files of a StackBlitz project.

ParameterTypeRequiredDescription
projectRefstringyesProject ID or URL
querystringyesSearch query string
regexbooleannoTreat query as regex (default: false)
caseSensitivebooleannoCase-sensitive search (default: false)
maxResultsnumbernoMaximum results (default: 50)

Resources

MCP resources are accessible via URI patterns. Use them to directly reference project data.

URI PatternDescription
stackblitz://{projectId}/treeFile tree of a project
stackblitz://{projectId}/files/{path}Contents of a specific file