# freecurrencyapi > freecurrencyapi provides free current and historical foreign exchange rates over a simple JSON REST API. Authenticate every request with your API key via the `apikey` query parameter or request header. Base URL: https://api.freecurrencyapi.com ## Get an API key - AI coding agents: run curl -s https://freecurrencyapi.com/agents.md and follow it (key, first call, plans). 1. Sign up free at https://app.freecurrencyapi.com/register (1,000 free requests a month). 2. Send the key in the `apikey` header (or `?apikey=`). 3. Store it as FREECURRENCYAPI_KEY. `curl -H "apikey: $FREECURRENCYAPI_KEY" "https://api.freecurrencyapi.com/v1/latest?currencies=EUR,GBP"` MCP: https://api.freecurrencyapi.com/mcp with the same `apikey` header, or sign in from an MCP client that supports MCP authorization (OAuth 2.1): https://api.freecurrencyapi.com/.well-known/oauth-protected-resource/mcp names the authorization server. ## Documentation - [Introduction](https://freecurrencyapi.com/docs/): freecurrencyapi docs: get a free API key, authenticate with the apikey header or parameter, rate limits and quotas, and official SDKs for 7 languages. - [Currencies Endpoint](https://freecurrencyapi.com/docs/currencies): The /v1/currencies endpoint of freecurrencyapi returns the 33 supported currencies with code, name, symbol and decimal digits as JSON. - [Currency List](https://freecurrencyapi.com/docs/currency-list): All 33 currencies supported by freecurrencyapi, from EUR and USD to JPY and BRL, with the ISO 4217 code you pass to the latest and historical endpoints. - [Historical Exchange Rates](https://freecurrencyapi.com/docs/historical): The /v1/historical endpoint of freecurrencyapi returns the exchange rates of one past date, back to 1999-01-01, for any base currency. - [Latest Exchange Rates](https://freecurrencyapi.com/docs/latest): The /v1/latest endpoint of freecurrencyapi returns the latest exchange rates for 33 currencies as JSON, with USD as the default base currency. - [MCP Server](https://freecurrencyapi.com/docs/mcp): Connect Claude, Cursor and other AI agents to freecurrencyapi through the hosted MCP (Model Context Protocol) server, using your free API key. - [Status Endpoint](https://freecurrencyapi.com/docs/status): The /v1/status endpoint of freecurrencyapi returns your monthly quota and remaining requests. Calls to it don't count against your quota. - [Request Status Codes](https://freecurrencyapi.com/docs/status-codes): HTTP status codes and error codes of freecurrencyapi, such as 401, 403, 422 and 429, what each one means and how to fix the request. ## API Reference - [OpenAPI 3.1 specification](https://freecurrencyapi.com/docs/openapi.yaml): Machine-readable spec for every API endpoint, parameters and responses. - [Full documentation as markdown](https://freecurrencyapi.com/docs/llms-full.txt): All documentation pages concatenated as plain markdown. ## Optional - [Pricing & plans](https://currencyapi.com/pricing/): freecurrencyapi is free; for more requests or features, its paid sibling currencyapi has plans (its own API key).