# MCP Server Documentation

> Connect Claude, Cursor, VS Code, and other AI assistants to CurrencyCore over MCP. Includes tools, parameters, limits, setup, and troubleshooting.

Canonical: https://currency-core.com/docs/mcp/
Updated: 2026-11-11
Published: 2026-06-06

---
CurrencyCore runs a hosted **MCP (Model Context Protocol) server** so AI
assistants can convert currencies, fetch rates, run historical analysis, and
apply PPP from natural language.

Point a compatible client at:

```
https://mcp.currency-core.com/mcp
```

It is a remote **Streamable-HTTP** server with **OAuth**. On first connect, the
client opens a browser where you sign in and choose an organization. Tool calls
then run against that organization like a normal API key, with the same limits,
metering, and billing. The authorization uses standard OpenID Connect scopes
(`openid`, `profile`, `email`, `offline_access`) plus the baseline `mcp:tools`
scope. There are no separate per-tool scopes; plan gating happens at call time.

See the [MCP server page](/mcp-server/) for details and the
[Claude](/mcp-for-claude/) and [Cursor](/mcp-for-cursor/) setup pages.

## Tools

The server exposes **14 tools**: two reference tools and twelve keyed tools.
Reference tools are unmetered. Tool discovery (`initialize` and `tools/list`)
and reference tool calls work without signing in, so clients can show the full
catalogue before an account is connected. Calling a keyed or analytics tool
returns a `401` challenge and starts the OAuth flow. Analytics tools also need
**Growth or higher**.

### Core tools, all plans

| Tool | What it does | Parameters |
|---|---|---|
| `convert` | Convert an amount at reference rates, optionally PPP-adjusted | `from`, `to`, `amount`, `ppp`, `date` |
| `get_rates` | USD-base rate snapshot | `date` |
| `get_rates_by_base` | Snapshot against another base | `base`, `date` |
| `get_history` | Daily rate series for one currency | `currency`, `from`, `to`, `base`, `interval` |
| `get_ppp_factor` | PPP conversion factor for a country and year | `country`, `year` |

### Analytics tools, Growth+

All analytics tools accept `from` and `to`; `analyze_history` and `analyze_ppp`
also accept `period`. Common optional parameters are `base` and `limit`.

| Tool | Distinctive parameters |
|---|---|
| `analyze_history` | `currencies`, `sort`, `assetClass`, `interval`, `stats` |
| `analyze_ppp` | `countries`, `sort`, `stats` |
| `analyze_volatility` | `currency`, `sort`, `universe` |
| `analyze_correlation` | `currencies` |
| `analyze_drawdown` | `currency`, `sort`, `universe` |
| `analyze_safe_haven` | `currencies` |
| `analyze_mean_reversion` | `currencies` |

### Reference tools

| Tool | What it does |
|---|---|
| `list_countries` | Supported countries and their official currency codes |
| `list_currencies` | Supported ISO 4217 codes and names |

## Install

For **Claude**, open **Settings > Connectors > Add custom connector** and enter
the server URL, then complete the OAuth sign-in. Current Claude Desktop builds
use that connector flow. Older builds that document remote servers in
`claude_desktop_config.json` use the entry below:

```json
{
  "mcpServers": {
    "currencycore": {
      "url": "https://mcp.currency-core.com/mcp"
    }
  }
}
```

For **Cursor**, use the [one-click install](https://cursor.com/install-mcp?name=currency-core&config=eyJ1cmwiOiJodHRwczovL21jcC5jdXJyZW5jeS1jb3JlLmNvbS9tY3AifQ==)
or add the server to Cursor Settings or `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "currency-core": { "url": "https://mcp.currency-core.com/mcp" }
  }
}
```

For **VS Code**, add this to `.vscode/mcp.json` or your user MCP settings:

```json
{
  "servers": {
    "currency-core": { "type": "http", "url": "https://mcp.currency-core.com/mcp" }
  }
}
```

For **Claude Code** and **Gemini CLI**, install the plugin or extension from the
open-source repository:

```bash
claude plugin marketplace add CurrencyCore/currency-core-mcp
claude plugin install currency-core-mcp@currencycore

gemini extensions install https://github.com/CurrencyCore/currency-core-mcp
```

On first use, authenticate through the client's MCP menu. In Claude Code, run
`/mcp`, select `currency-core`, and choose **Authenticate**.

## Limits and billing

- Each successful keyed tool call is **one API request** against the monthly
  quota and per-minute limit. Reference tools are unmetered. Analytics
  tools require Growth or higher and return `403` below it.
- MCP is included on every plan. The Developer panel can turn it off, which
  returns `403` for MCP calls without affecting normal API keys.
- Tool results carry `_meta["currencycore/tool_calls"]` and
  `_meta["currencycore/billed_requests"]` for usage reconciliation.
- The server makes one retry for transient network, `429`, and `5xx` failures,
  with jittered backoff. Per-attempt timeout defaults to 15 seconds.
- `Retry-After` is capped at 5 seconds in tool metadata. For longer waits, retry
  from the client.
- Analytics calls draw on the same plan limits as the REST endpoints. See
  [Rate Limits and Plan Quotas](/docs/rate-limits/).

## Troubleshooting

| Symptom | Likely cause | Fix |
|---|---|---|
| No tools listed | The client is not authenticated. | Reconnect and complete the browser sign-in. |
| `401` or a reauthentication notice | The OAuth token expired or access was revoked. | Reconnect and choose the organization again. |
| `403`, MCP access disabled | The organization turned MCP off. | Re-enable it in the Developer panel. |
| `403` on analytics | The organization is on Free or Starter. | Upgrade to Growth or higher. |
| `429 rate_limited` | The per-minute or monthly limit was reached. | Wait for `Retry-After` or check the plan quota. |
| `Missing required path parameter` | A path parameter such as `base` was omitted. | Supply it; no default path value is used. |
| Tool call times out | The request is too large or the API was cold. | Narrow the window or currency set, then retry once. |
| Tool not found | The client cached an older tool list. | Restart the client or refresh its MCP connection. |

## Usage tips

- **PPP needs a country only for ambiguous currencies.** Common currencies
  resolve automatically (`USD` to USA, `INR` to IND, `EUR` to DEU), so
  `from=USD&to=INR&ppp=true` works. Pass `CUR:COUNTRY` when a currency spans
  several countries or you need a specific one, for example
  `to=EUR:DEU,EUR:FRA`. See the [convert endpoint](/docs/convert-endpoint/).
- **`amount` defaults to 1**, so omit it for the effective rate.
- **Dates are UTC** and cannot be in the future. Omit `date` for the latest
  snapshot.
- **Use `period` for trends.** `analyze_history` and `analyze_ppp` accept `1y`,
  `5y`, `ytd`, or `6m`. The other analytics tools accept only `from` and `to`.

The MCP server is a thin authenticated proxy over the REST API. Every call obeys
the same [authentication](/docs/authentication/), [rate limits](/docs/rate-limits/),
and [error handling](/docs/errors/).

## Next steps

- [MCP tools](/docs/mcp-tools/): all 14 tools, inputs, outputs, and errors.
- [MCP OAuth and access](/docs/mcp-oauth/): consent, organization selection, and
  revocation.
- [MCP troubleshooting](/docs/mcp-troubleshooting/): symptom, cause, and fix.
- [MCP vs REST](/docs/mcp-vs-rest/): when to use an agent connection instead of
  HTTP.
- [MCP examples cookbook](/mcp-examples/): realistic request and response pairs.
- [MCP server landing page](/mcp-server/): product overview and client list.

## Related products

- [Pricing](/pricing/)
- [Currency API](/currency-api/)
- [MCP server](/mcp-server/)
- [Currency converter](/tools/currency-converter/)
- [Getting started](/docs/getting-started/)
