Tool type: AI-first code editor (desktop) Website: cursor.com Transport support: stdio, SSE, Streamable HTTP
| Scope | Path |
|---|---|
| Global (all projects) | ~/.cursor/mcp.json |
| Project-specific | .cursor/mcp.json in your project root |
On Windows, the global path is %USERPROFILE%\.cursor\mcp.json.
Project-level configs can be committed to version control so teammates automatically inherit them.
The root key is mcpServers. For a remote HTTP/SSE server, use the url key:
{
"mcpServers": {
"pieces": {
"url": "http://localhost:39300/model_context_protocol/2025-03-26/mcp"
}
}
}For a stdio server (local process):
{
"mcpServers": {
"pieces": {
"command": "npx",
"args": ["-y", "some-mcp-package"],
"env": {
"API_KEY": "value"
}
}
}
}Recommended when PiecesOS and Cursor are on the same machine. The
http://localhostURL is direct and needs no extra setup.
{
"mcpServers": {
"pieces": {
"url": "http://localhost:39300/model_context_protocol/2025-03-26/mcp"
}
}
}Port note: PiecesOS may run on any port from 39300-39333. Check yours at PiecesOS Quick Menu > MCP Servers, or probe
http://localhost:PORT/.well-known/versionfor each port.
Use this when Cursor is running on a different machine from PiecesOS, or when you need a public HTTPS URL. For setup, see: Connecting to PiecesOS from the Outside World via Ngrok.
{
"mcpServers": {
"pieces": {
"url": "https://YOUR_NGROK_URL.ngrok.app/model_context_protocol/2025-03-26/mcp"
}
}
}- Open Cursor Settings (Cmd+Shift+J on macOS, Ctrl+Shift+J on Windows/Linux)
- Navigate to the MCP section
- Confirm "pieces" appears in the server list with a green status indicator
- Open Cursor Chat and ask: "What tools do you have from Pieces?"
To update the MCP URL (e.g., after your ngrok address changes):
- Edit
~/.cursor/mcp.json(or.cursor/mcp.json) - Update the
urlvalue - Restart Cursor
| Issue | Solution |
|---|---|
| Server shows red/disconnected | Verify PiecesOS is running and the port is correct |
| Tools not appearing in chat | Restart Cursor after editing mcp.json; Cursor loads MCP config on startup |
| SSE stopped working after upgrade | Some Cursor versions have SSE regressions; switch to Streamable HTTP endpoint (/model_context_protocol/2025-03-26/mcp) |
| Project-level config not loading | Ensure the file is at .cursor/mcp.json (not .cursor/config/mcp.json) |
| Wrong port | Probe ports 39300-39333 with curl http://localhost:PORT/.well-known/version |
- Pieces MCP and LTM Tools Reference — Complete reference for all 39 tools available to your agents
- Connecting to PiecesOS via Ngrok — Expose your local Pieces server for remote access
| ← Back to All Agent Setup Guides |