Docs
La Recherche⌘ K
  • Accueil
  • À propos de The Graph
  • Réseaux pris en charge
  • Contrats du Protocole
  • Subgraphs
    • Substreams
      • Token API
        • Hypergraph
          • AI Suite
            • Indexing
              • Graph Horizon
                • Resources
                  AI Suite > Token API MCP

                  Using Cline to Access the Token API via MCP

                  Prerequisites

                  • Cline⁠ installed.
                  • A JWT token from The Graph Market⁠.
                  • npx⁠ or bunx⁠ 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 Cline's MCP server configuration interface displaying the JSON settings file with mcp-pinax server details visible.

                  Configuration

                  Create or edit your cline_mcp_settings.json file.

                  MCP Servers > Installed > Configure MCP Servers

                  cline_mcp_settings.json
                  1{2  "mcpServers": {3    "mcp-pinax": {4      "command": "npx",5      "args": ["@pinax/mcp", "--sse-url", "https://token-api.mcp.thegraph.com/sse"],6      "env": {7        "ACCESS_TOKEN": "<JWT Token from thegraph.market>"8      }9    }10  }11}

                  Troubleshooting

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

                  ENOENT

                  Cline error dialog showing 'ENOENT' system alert.

                  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 (e.g. /home/user/bin/bunx).

                  Server disconnected

                  Cline connection error notification displaying server disconnection warning.

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

                  ⁠Edit on GitHub⁠

                  Claude DesktopCursor
                  On this page
                  • Prerequisites
                  • Configuration
                  • Troubleshooting
                  • ENOENT
                  • Server disconnected
                  The GraphStatusTestnetActifs de la MarqueForumSécuritéPolitique de confidentialitéConditions d'utilisation