Skip to main content
Glama
stackblitz-mcp
by sxzz

stackblitz-mcp

npm version npm downloads Unit Test

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

Related MCP server: Miru

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-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 © 2026-PRESENT Kevin Deng

Available Tools

4 tools
list_filesA

List files in a StackBlitz project, optionally filtered by path prefix

Inputs: projectRef (required), path.

read_fileC

Read the contents of a file from a StackBlitz project

Inputs: path (required), projectRef (required).

resolve_projectC

Resolve a StackBlitz project URL or ID and return project metadata

Inputs: projectRef (required).

search_filesC

Search for content within files of a StackBlitz project

Inputs: query (required), projectRef (required), regex, maxResults, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a clearly distinct operation: resolving a project, listing files, reading a file, and searching file contents. There is no overlap between them—resolve establishes context, then list/read/search operate on files with distinct purposes.

    Naming Consistency5/5

    All four tools follow a consistent verb_noun snake_case pattern (resolve_project, list_files, read_file, search_files). The convention is predictable and readable throughout.

    Tool Count4/5

    Four tools is on the thin side but reasonable for a focused project-browsing surface. Each tool earns its place, though a couple more operations (e.g. write/create) could round it out.

    Completeness3/5

    The surface is entirely read-only: it can resolve, list, read, and search, but there is no way to create, update, or delete files, or create projects. This notable write-side gap limits agent workflows that need to modify a project.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to inspect files, search text, compare directories, read symbols, and apply structured edits against large codebases through bounded, local-first MCP tools.
      4
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes search, locate, expand, and find_related tools over MCP so AI coding agents in Claude Code, Cursor, Copilot, and other clients can retrieve the best code chunks (path, lines, snippet) by meaning instead of grep or glob. This hybrid code search lets agents find the right files in fewer steps, using up to 50% fewer tokens.
      291 npm
      12
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients such as Claude Desktop, Cline, and Cursor to extract information from GitHub repositories, including repository summaries, project directory structure, and file contents. It exposes these capabilities as tools that can be invoked directly from a natural-language chat session.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude Code and other agents to search versioned skills, fetch skill contents, and browse folders through MCP, backed by hybrid full-text and semantic search.
      MIT