Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions website/src/pages/en/ai-suite/token-api-mcp/claude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ sidebarTitle: Claude Desktop
- [`npx`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) or [`bunx`](https://bun.sh/) installed and available in your path.
- The `@pinax/mcp` package requires Node 18+, as it relies on built-in `fetch()` / `Headers`, 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.

![Screenshot of Claude Desktop's settings panel showing the MCP server configuration option.](/img/claude-preview-token-api.png)

## Configuration

Create or edit your `claude_desktop_config.json` file.

> **Settings** > **Developer** > **Edit Config**

- OSX: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
- Linux: `.config/Claude/claude_desktop_config.json`
Expand All @@ -38,21 +34,19 @@ Create or edit your `claude_desktop_config.json` file.

## Troubleshooting

To enable logs for the MCP, use the `--verbose true` option.
To enable logs for the MCP, add the option `"--verbose": "true"` under "args".

### ENOENT

![Error dialog in Claude Desktop showing 'ENOENT' system error, indicating the npx/bunx command wasn't found in the system path.](/img/claude-ENOENT.png)

Try to use the full path of the command instead:

- Run `which npx` or `which bunx` to get the path of the command.
- Run `which npx` or `which bunx` in the command line interface to get the path of the command.
- Replace `npx` or `bunx` in the configuration file with the full path (e.g. `/home/user/bin/bunx`).

### Server disconnected

![Connection error notification in Claude Desktop displaying 'Server disconnected' message.](/img/claude-server-disconnect.png)

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

> You can always have a look at the full logs under `Claude/logs/mcp.log` and `Claude/logs/mcp-server-pinax.log` for more details.
Double-check your API key. Otherwise, look in your navigator if `https://token-api.mcp.thegraph.com/sse` is reachable.
Loading