# Bitquery — MCP server on mcp.ai > Connect your Bitquery account and use 10 tools for analytics straight from your AI agent. Connect with your own API key. Bitquery provides historical and real-time indexed data for over 40 blockchains through GraphQL APIs, Websockets, SQL, and cloud providers. By: mcp.ai · official Page: https://mcp.ai/bitquery ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_bitquery?ms=1787293740000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/bitquery/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/bitquery/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/bitquery/skill.md Postman collection (v2.1): https://mcp.ai/bitquery/postman.json ## Tools - bitquery_archive_database_query(query: string, variables?: object, operationName?: string) — Query the Bitquery Archive Database (V1 API) for historical blockchain data. The Archive Database provides complete historical blockchain data across 40+ blockchains including Bitcoin, Ethereum, BSC, - bitquery_combined_database_query(query: string, variables?: object, operationName?: string) — Query Bitquery's Combined Database (v2 API) for blockchain data across 40+ networks. Use this tool to fetch real-time and historical blockchain data including: - Blocks, transactions, and events - Tok - bitquery_conditional_metrics(if: object, alias?: string, field: string, operation: string, select_where?: object, distinct_field?: string) — Generate a Bitquery GraphQL metric snippet with conditional logic using the 'if:' attribute. This tool builds metric aggregation snippets (count, sum, avg, min, max) that can be embedded in Bitquery G - bitquery_database_selection(dataset: string) — Tool to select the database (archive, realtime, combined) to query at the top level of a GraphQL request. Use after determining whether you need live, historical, or combined blockchain data. - bitquery_early_access_program_query(query: string, variables?: object) — Execute GraphQL queries against the Bitquery Early Access Program (EAP) Streaming API. This tool queries the EAP endpoint (streaming.bitquery.io/eap) for real-time blockchain data. The EAP provides ac - bitquery_network_selection(network: string) — Tool to select the blockchain network for GraphQL queries. Use before constructing dataset or metric queries to ensure the correct chain is targeted. - bitquery_options_query() — Tool to fetch GraphQL dataset options via schema introspection. Use when you need to discover root-level query fields and their arguments before building queries. Dataset and token availability varies - bitquery_price_asymmetry_metric(ge?: number, gt?: number, le?: number, lt?: number) — Tool to generate GraphQL PriceAsymmetry filter snippet. Use when you need to filter trades based on price asymmetry metric. - bitquery_realtime_database_query(query: string, variables?: object, operationName?: string) — Query the Bitquery Streaming (V2) API for realtime blockchain data. This tool accesses the Bitquery Streaming API at streaming.bitquery.io/graphql which provides real-time blockchain data with minimal - bitquery_select_by_metric(of: string, alias?: string, operation: string, selectWhere: object) — Tool to generate a GraphQL metric snippet filtering by its value using selectWhere. Use when you need to include only metrics meeting specific value conditions (e.g., only positive sums). ## Example prompts - "What can I do in Bitquery?" - "Show me a summary of my Bitquery account" ## Links Docs: https://mcp.ai/docs/mcps/bitquery Website: https://mcp.ai/mcps/bitquery