Cursor - The AI Code Editor Built to make you extraordinarily productive, Cursor is the best way to code with AI.

https://www.cursor.com/

Authentication

  1. Create a free account at https://thegraph.market using your GitHub credentials as login.
  2. Go to Dashboard
  3. Create New Key
  4. Generate Access Token

Configuration

  • You will need npx or bunx installed and available in your path.
  • The @pinax/mcp package requires Node 18+, as it relies on built-in fetch(), which are not available in Node 17 or older. You may need to specify an exact path to an up-to-date Node version, or uninstall previous versions of Node to ensure @pinax/mcp uses the correct version.

You will need to either create or edit your ~/.cursor/mcp.json file.

Cursor Settings > MCP > Add new global MCP ServerConfigure MCP Servers

{
  "mcpServers": {
    "token-api": {
      "command": "npx",
      "args": [
        "@pinax/mcp",
        "--sse-url",
        "https://token-api.thegraph.com/sse"
      ],
      "env": {
        "ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
      }
    }
  }
}

Troubleshooting

To enable logs for the MCP, use the --verbose true option.

ENOENT

Try to use the full path of the command instead:

  • Run which npx or which bunx to get the path of the command
  • Replace npx or bunx in the configuration file with the full path

Example: /home/user/bin/bunx

Server disconnected

Double-check your API key otherwise look in your navigator if https://token-api.thegraph.com/sse is reachable.

Failed to create client