MCP
Cursor
Cursor - The AI Code Editor Built to make you extraordinarily productive, Cursor is the best way to code with AI.
Authentication
- Create a free account at https://thegraph.market using your GitHub credentials as login.
- Go to Dashboard
- Create New Key
- Generate Access Token
Configuration
- You will need
npx
orbunx
installed and available in your path. - The
@pinax/mcp
package requires Node 18+, as it relies on built-infetch()
, 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
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
orwhich bunx
to get the path of the command - Replace
npx
orbunx
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