Standard Server MCP
The standard MCP server implementation in @critical-path/mcp/server exposes project management tools, live resources, and prompt templates to AI coding environments using the Model Context Protocol.
🚀 Quick Start with the CLI
Run the MCP server directly using npx:
Local SQLite Database
npx @critical-path/mcp --db ./my-project.dbRemote API (Next.js / SvelteKit / Express)
npx @critical-path/mcp --api http://localhost:3000/api/critical-pathIn-Memory Fallback (Testing & Scratchpads)
npx @critical-path/mcp🖥️ Claude Desktop Integration
Add Critical Path to your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "critical-path": { "command": "npx", "args": [ "-y", "@critical-path/mcp", "--db", "/absolute/path/to/critical-path.db" ] } }}Once saved and restarted, Claude will have access to all 12 project tools, prompt templates, and project resources.
💻 Cursor Integration
In Cursor:
- Open Cursor Settings (
Cmd+,orCtrl+,). - Navigate to Features → MCP.
- Click + Add New MCP Server.
- Set:
- Type:
command - Command:
npx -y @critical-path/mcp --api http://localhost:3000/api/critical-path
- Type:
🧑💻 Programmatic Server Creation
You can embed the MCP server in your own Node.js backend services:
import { createCriticalPathMcpServer, startStdioServer } from '@critical-path/mcp/server';import { CriticalPathEngine, SQLiteStore } from '@critical-path/core';
// 1. Initialize your data storeconst store = new SQLiteStore({ filename: 'production.db' });const engine = new CriticalPathEngine({ store });
// 2. Create the MCP Server instanceconst server = createCriticalPathMcpServer({ engine, serverInfo: { name: 'custom-critical-path-mcp', version: '1.0.0' }});
// 3. Connect to stdio transportawait startStdioServer(server);📂 MCP Resources & Prompts
In addition to tools, the server exposes:
Resources
criticalpath://projects: Dynamic JSON resource listing all active projects.criticalpath://tasks: Dynamic JSON list of all tasks.criticalpath://tasks/{id}: Live snapshot of a specific task with dependencies.
Prompts
summarize_project: Automatically formats an executive summary prompt with total tasks, status breakdowns, and deliverables for a targetprojectId.triage_task: Generates an actionable triage review prompt for a giventaskId.