MCP server for reading files from StackBlitz projects
stackblitz-mcp
MCP server for reading files from StackBlitz projects. Enables AI to access file contents and project structure from StackBlitz reproduction repositories.
Install
npm i -g stackblitz-mcp
Usage
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"stackblitz": {
"command": "npx",
"args": ["-y", "stackblitz-mcp"]
}
}
}
Claude Code
claude mcp add stackblitz -- npx -y stackblitz-mcp
Cursor
Add to your .cursor/mcp.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-rf7brvcmorhttps://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 URLpath(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 URLpath(string) — File path within the project
search_files
Search for content within files of a StackBlitz project.
Input:
projectRef(string) — Project ID or URLquery(string) — Search queryregex(boolean, default:false) — Treat query as regexcaseSensitive(boolean, default:false) — Case-sensitive searchmaxResults(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 © 2026-PRESENT Kevin Deng