Skip to main content

MCP Server Setup

Quick Start

Run the MCP server instantly — no install, no clone, no setup:
npx @stackfront/mcp-server
The server starts in stdio mode and waits for your AI assistant to connect. Leave this terminal running while you work.

Configuration by Editor

In every case below, use npx @stackfront/mcp-server as the command — your AI tool handles the rest.

Cursor

Create .cursor/mcp.json at your project root:
{
  "mcpServers": {
    "stackfront": {
      "command": "npx",
      "args": ["@stackfront/mcp-server"]
    }
  }
}
After saving, restart Cursor — the MCP server appears in the MCP panel.

Claude Code

Create or edit ~/.claude/settings.json:
{
  "mcpServers": {
    "stackfront": {
      "command": "npx",
      "args": ["@stackfront/mcp-server"]
    }
  }
}

VS Code (Continue Extension)

In your Continue config (.continuerc.json or Continue extension settings):
{
  "experimental": {
    "mcpServers": {
      "stackfront": {
        "command": "npx",
        "args": ["@stackfront/mcp-server"]
      }
    }
  }
}

Other MCP-Compatible Tools

Any tool that supports the Model Context Protocol can connect:
{
  "command": "npx",
  "args": ["@stackfront/mcp-server"]
}

Remote (Cloudflare Workers)

For team-wide use or when you don’t want a local process, connect to the hosted Workers deployment via SSE:
{
  "mcpServers": {
    "stackfront": {
      "type": "sse",
      "url": "https://stackfront-mcp-server.<your-worker>.workers.dev"
    }
  }
}

Internal Development (Full SDK Reflection)

If you need the full capabilities including SDK source introspection (hooks, services, types, GraphQL), clone the monorepo and use the local entry point:
git clone https://github.com/GetThumbly/stackfront.git
cd stackfront/pkgs/mcp-server
npm install
npm run build
npm start
Then configure your editor with node ./dist/index.js instead of npx @stackfront/mcp-server.

Verify It Works

After connecting, ask your AI assistant:
“Search the Stackfront docs for cart checkout” “Show me a code example for product listing”
For the local monorepo version, you can also ask:
“Look up the useCart hook in the SDK”
If the assistant returns documentation or code, the MCP server is working correctly.

What’s Included

Modesearch_docsget_code_exampleget_sdk_apiResources
npx / Workers❌ (uses docs instead)Docs only
Monorepo (local)✅ (full SDK reflection)Docs + SDK