@@ -18,12 +18,13 @@ Create or edit your `claude_desktop_config.json` file.
1818- Windows: ` %APPDATA%\Claude\claude_desktop_config.json `
1919- Linux: ` .config/Claude/claude_desktop_config.json `
2020
21+ ** REST-based MCP**
2122``` json label="claude_desktop_config.json"
2223{
2324 "mcpServers" : {
2425 "token-api" : {
2526 "command" : " npx" ,
26- "args" : [" @pinax/mcp" , " --sse -url" , " https://token-api.mcp.thegraph.com/sse " ],
27+ "args" : [" @pinax/mcp" , " --remote -url" , " https://token-api.mcp.thegraph.com/" ],
2728 "env" : {
2829 "ACCESS_TOKEN" : " <https://thegraph.market JWT Access Token>"
2930 }
@@ -32,9 +33,43 @@ Create or edit your `claude_desktop_config.json` file.
3233}
3334```
3435
36+ ** SQL-based MCP**
37+ ``` json label="claude_desktop_config.json"
38+ {
39+ "mcpServers" : {
40+ "token-api" : {
41+ "command" : " npx" ,
42+ "args" : [" @pinax/mcp" , " --remote-url" , " https://token-api.mcp.thegraph.com/sql" ],
43+ "env" : {
44+ "ACCESS_TOKEN" : " <https://thegraph.market JWT Access Token>"
45+ }
46+ }
47+ }
48+ }
49+ ```
50+
51+ > [ !NOTE]
52+ > The previous ` --sse-url ` option is deprecated, use ` --remote-url ` .
53+
3554## Troubleshooting
3655
37- To enable logs for the MCP, add the option ` "--verbose", "true" ` under ` "args" ` .
56+ To enable logs for troubleshooting the MCP, add the option ` "--verbose", "true" ` under ` "args" ` .
57+
58+ ``` json label="claude_desktop_config.json"
59+ {
60+ "mcpServers" : {
61+ "token-api" : {
62+ "command" : " npx" ,
63+ "args" : [" @pinax/mcp" , " --remote-url" , " https://token-api.mcp.thegraph.com/" , " --verbose" , " true" ],
64+ "env" : {
65+ "ACCESS_TOKEN" : " <https://thegraph.market JWT Access Token>"
66+ }
67+ }
68+ }
69+ }
70+ ```
71+
72+ Logs are available under ` logs/mcp.log ` and ` /logs/mcp-server-token-api.log ` inside the folder of your Claude configuration file.
3873
3974### ENOENT
4075
0 commit comments