Introduction
Use the CoinAPI Flat Files MCP server to discover buckets, browse dataset prefixes, and enumerate downloadable flat files through self-describing tools.
Flat Files MCP
The CoinAPI Flat Files API is available through a hosted Model Context Protocol (MCP) server. It exposes a compact set of self-describing tools for browsing buckets and file paths from MCP clients such as Cursor, Claude Desktop, or custom agent runtimes.
Flat Files are served from two buckets: coinapi (hourly partitions and legacy daily data) and coinapi-daily-tail (previous day's daily data only, 24-hour retention). List both with storage_list_buckets before browsing prefixes.
Server endpoint
https://mcp.flatfiles.coinapi.io/mcpUse your regular CoinAPI API key in the X-CoinAPI-Key header.
Only the
/mcpendpoint is supported for this service.
What is available through MCP?
The Flat Files MCP server currently exposes 2 tools:
| Area | What you can do |
|---|---|
| Bucket discovery | List the storage buckets available to your API key and inspect owner metadata. |
| Prefix and object discovery | Browse dataset prefixes, date partitions, and concrete .csv.gz objects using S3-style listings. |
Typical discovery flow
Most integrations follow this order:
- Call
storage_list_bucketsto list the available buckets:coinapiandcoinapi-daily-tail. - Call
storage_list_objectswithbucket: "coinapi"to enumerate top-level dataset prefixes such asT-TRADES/,T-QUOTES/,T-LIMITBOOK_FULL/, orT-OHLCV_ACTIVE_CONSOLIDATED/. - For the previous day's daily files, call
storage_list_objectswithbucket: "coinapi-daily-tail"and a dataset prefix such asT-TRADES/. - Call
storage_list_objectsagain with a deeperprefixsuch asT-TRADES/incoinapito discover hourly partitions likeT-TRADES/D-2026040712/. - Continue narrowing the prefix until you reach concrete object keys ending in
.csv.gz. - Use the discovered object key with the standard S3 API when you want to download the file contents.
Live-tested notes
- The current MCP listing returns two accessible buckets:
coinapiandcoinapi-daily-tail. - Root-level listing for
coinapicurrently returnsT-TRADES/,T-QUOTES/,T-OHLCV_ACTIVE_CONSOLIDATED/, andT-LIMITBOOK_FULL/. - Root-level listing for
coinapi-daily-tailreturns Trades, Quotes, and Full Limit Order Book prefixes, but not OHLCV. This bucket is a rolling 24-hour window for the previous day's daily files only and is not a historical archive. storage_list_objectsreturns folder-like values incommonPrefixes, whilecontentsstays empty until you browse a concrete prefix level.- A live listing for
T-TRADES/incoinapicurrently returns hourly partitions such asT-TRADES/D-2026040712/,T-TRADES/D-2026040711/, andT-TRADES/D-2026040710/. - A listing for
coinapi-daily-tailexposes a single daily partition for yesterday's date, for exampleT-TRADES/D-20260609/. - MCP is best suited for discovery of valid bucket names and object paths before using your regular download workflow.
What MCP is best for
This MCP server is best suited for:
- Interactive discovery of bucket structure and dataset families
- Agent workflows that need to inspect available prefixes before building download paths
- Enumerating object metadata such as file key, last modification time, and size
If you need to download the file bytes, continue with the standard S3 API after discovering the object key through MCP.