Claude Code CLI
Set up Trinity Insights MCP in Claude Code, Anthropic's official CLI tool for developers.
Configuration
Configuration type: JSON
File location: ~/.claude/mcp_servers.json (or via the `claude mcp add` command)
{
"mcpServers": {
"trinity-insights": {
"url": "https://mcp.trinityinsights.io/mcp",
"transport": "streamable-http",
"headers": {
"Authorization": "Bearer YOUR_TRINITY_API_KEY"
}
}
}
}Replace YOUR_TRINITY_API_KEY with the API key you will generate in the next step.
Setup steps
- Install Claude Code
Follow Anthropic's official documentation to install Claude Code via npm or the provided binary. - Retrieve your Trinity API key
Dashboard → Settings → API Keys MCP. Create a key dedicated to Claude Code. - Configure the MCP server
Option A: edit ~/.claude/mcp_servers.json manually. Option B: use the command `claude mcp add trinity-insights --url ... --header 'Authorization: Bearer ...'`. - Verify the registration
Run `claude mcp list`. Trinity Insights should appear with the connected status. - First tool call
In a Claude Code session, ask: "List the on-chain charts available in Trinity." The list_metrics tool will be called.
Notes
- Claude Code accepts environment variables: store the key in TRINITY_MCP_API_KEY and reference it via ${TRINITY_MCP_API_KEY} in the header.
- Logs available via `claude mcp logs trinity-insights`.
Other MCP clients
Related resources
Institutional disclaimer
Trinity Insights is an educational and analytical tool. MCP responses do not constitute investment advice. Trinity Insights is not a Crypto-Asset Service Provider (CASP) registered under MiCA Regulation (EU) 2023/1114. See the full disclaimer.