Skip to main content
Cursor launches MCP servers as local processes. You configure the server in .cursor/mcp.json either at the project root (shared with collaborators) or in your user directory (private to you).

Configuration file location

ScopePath
Project<project_root>/.cursor/mcp.json
User~/.cursor/mcp.json
Project-scoped configuration takes precedence when both exist. Use the user-scoped path when you want the server available across every project on your machine.

Add the server

.cursor/mcp.json
{
  "mcpServers": {
    "alphacast": {
      "command": "npx",
      "args": ["-y", "@alphacast/mcp"],
      "env": {
        "ALPHACAST_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
Do not commit a real API key to a project-scoped file. Either rely on the user-scoped path, or wire up a secrets manager and document the setup in your project README.

Apply the change

  1. Save .cursor/mcp.json.
  2. Open Cursor’s settings → Features → MCP and click Refresh, or reload the window (Cmd/Ctrl + Shift + PDeveloper: Reload Window).

Verify

Open the MCP panel in Cursor’s settings. The alphacast server should appear with a green dot and 32 tools listed. In the chat, try:
“Use the alphacast tools to list my repositories.”
If the server fails to connect, the most common causes are an invalid ALPHACAST_API_KEY or Node.js 18+ not being on the system PATH.