Skip to main content
This guide helps you quickly configure ChainStream MCP Server.

Prerequisites

Before you begin, ensure you have:
RequirementDetailsHow to Check
ChainStream AccountRegistered accountLog in to console to confirm
Access TokenValid access tokenConsole → Apps → Generate Token
AI ClientClaude Desktop / Cursor / Custom clientInstalled

MCP Endpoint

ChainStream provides a hosted MCP Server. No local installation required - connect directly via:
https://mcp.chainstream.io/mcp

Configuration Steps

1

Get Access Token

  1. Log in to ChainStream Console
  2. Navigate to Apps page
  3. Create an App to get Client ID and Client Secret
  4. Use credentials to generate Access Token (see Authentication docs)
Access Token is valid for 24 hours. We recommend implementing an automatic refresh mechanism in your application.
2

Configure AI Client

Config file path:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Configuration:
{
  "mcpServers": {
    "chainstream": {
      "url": "https://mcp.chainstream.io/mcp",
      "headers": {
        "Authorization": "Bearer your_access_token"
      }
    }
  }
}
If the file doesn’t exist, create it manually. If you have other MCP Server configurations, add the chainstream config to the existing mcpServers object.
3

Restart Client

After configuration, completely quit and restart your AI client for changes to take effect.
  • Claude Desktop: Fully quit (not just minimize), then reopen
  • Cursor: Restart the IDE

Verify Configuration

Test Command

Enter the following test question in your AI client:
Query the token balance of 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum

Expected Result

If configured successfully, the AI should:
  1. Recognize this as a balance query request
  2. Call the get_token_balance tool
  3. Return the address’s token balance list
Success example:
This address (Vitalik.eth) holds the following on Ethereum:

| Token | Balance | Value (USD) |
|-------|---------|-------------|
| ETH   | 1,234.56 | $2,469,120 |
| USDC  | 50,000 | $50,000 |
| ...   | ... | ... |

Total value: ~$2,500,000
If the AI doesn’t call the tool or returns an error, refer to Troubleshooting below.

Troubleshooting

Possible causes:
  1. Access Token entered incorrectly
    • Check for extra spaces
    • Confirm complete copy
  2. Access Token expired
    • Token is valid for 24 hours
    • Need to regenerate
  3. Token format incorrect
    • Confirm it’s a complete JWT format
    • Confirm Bearer prefix is included
Solutions:
  • Regenerate Access Token
  • Check if Token is expired
  • Confirm Authorization header format is correct
Possible causes:
  1. Network issues
    • Check network connection
    • Confirm access to https://mcp.chainstream.io
  2. Configuration format error
    • Check JSON format is correct
    • Confirm URL spelling is correct
Solution:
# Test endpoint connectivity
curl -I https://mcp.chainstream.io/mcp
Possible causes:
  1. Config file path incorrect
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. JSON format error
    • Use a JSON validator to check
  3. Client not restarted
    • Fully quit and restart
Solution:
# macOS - validate config file
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | python -m json.tool
Possible causes:
  1. Plan quota exhausted
  2. Request rate too high, triggering rate limit
Solutions:
  • Check quota usage in the console
  • Upgrade plan for more quota
Possible causes:
  1. Network latency
  2. Query data volume too large
  3. Server load high
Solutions:
  • Check network connection
  • Reduce data volume per query
  • Try again later

Next Steps