Docs
One API key, from your dashboard, authenticates both the REST API and the MCP server.
Guide
Treasury indices
The eleven total-return indices: what each covers, how to read levels, returns and analytics, and the two date conventions.
REST
The full reference is generated from the API itself: https://api-staging.saferate.markets/reference.
curl https://api-staging.saferate.markets/v1/curves/zero \ -H "Authorization: Bearer $SAFERATE_MARKETS_KEY"
MCP
For AI assistants and agents. Streamable HTTP at https://api-staging.saferate.markets/mcp, authenticated with the same key as a Bearer header.
Claude Code
claude mcp add --transport http saferate-markets https://api-staging.saferate.markets/mcp \ --header "Authorization: Bearer $SAFERATE_MARKETS_KEY"
Any client that reads an mcpServers file
{
"mcpServers": {
"saferate-markets": {
"type": "http",
"url": "https://api-staging.saferate.markets/mcp",
"headers": { "Authorization": "Bearer ${SAFERATE_MARKETS_KEY}" }
}
}
}Keep the key in an environment variable rather than in the file. Sign-in based connection for claude.ai and Claude Desktop is not available yet.