Model Context Protocol (MCP)

Add Torus MCP to your IDE.

Install the Torus planning server into Cursor, VS Code, Claude Desktop, or Windsurf. Plan software architectures directly from your code editor without context switching.

Choose your IDE

Install in Cursor

Config file: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Setup steps
  1. Click "Add to Cursor" or paste the config into .cursor/mcp.json
  2. Restart Cursor completely
  3. Open Settings → MCP and confirm torus-ai-builder is connected
  4. Ask: "Use Torus to plan my idea: [your app idea]"
Example prompt: “Use Torus to plan my idea: a Next.js SaaS dashboard with AI recommendations.”
mcp.json
http://localhost:3000/api/mcp
{
  "mcpServers": {
    "torus-ai-builder": {
      "url": "http://localhost:3000/api/mcp"
    }
  }
}

Capabilities Unlocked in Your IDE

Idea to Architecture Brief

Type your raw idea inside Cursor or Claude to receive an instant tech stack and modular blueprint.

Feature Decomposition

Receive prioritized must-have and nice-to-have features with complexity ratings and technical rationale.

Service Topology

Get full-stack service boundaries, database schemas, auth strategies, and vector integrations.

7-Phase Build Prompts

Follow structured, copy-paste prompts engineered for autonomous code generators.

Production Deployment

Access verified hosting CLI steps, required env vars, and health-check scripts.

Tool Recommendation Hub

Discover recommended AI models, embeddings, and developer tools for each project phase.

Manual Configuration

mcp.json

JSON-RPC 2.0
{
  "mcpServers": {
    "torus-ai-builder": {
      "url": "http://localhost:3000/api/mcp"
    }
  }
}

Paste this snippet into your IDE's MCP settings file (~/.cursor/mcp.json or VS Code settings).

Architecture & Deployment

How to deploy your Torus MCP server

Option A: Remote Streamable HTTPRecommended

Zero-maintenance deployment. The MCP server deploys with your Next.js app on Vercel at /api/mcp.

  1. 1.Deploy to Vercel: npx vercel --prod
  2. 2.Set environment variables (GROQ_API_KEY, SEARXNG_BASE_URL)
  3. 3.Add production URL to your IDE MCP settings
Option B: Local Node stdioOffline / Dev

Run directly via Node.js stdio communication while hacking locally on your machine.

{
  "mcpServers": {
    "torus-ai-builder": {
      "command": "node",
      "args": [
        "mcp/torus-mcp-server.mjs"
      ],
      "env": {
        "TORUS_BASE_URL": "http://localhost:3000"
      }
    }
  }
}