# Connect an assistant

To connect an agent you write in code, follow [Build an agent](/docs/build/build-an-agent).

The DFO MCP server URL is `https://developmentfinance.org/mcp`, with no slash at the end. Any assistant can connect without a DFO account or sign-in. The server uses MCP (Model Context Protocol), the standard way assistants call outside tools. Once connected, your assistant can search and fetch DFO data, run calculations, draw charts, and export files. It gives the sources of the numbers. When it exports a dataset, it returns a snapshot link to cite.

## Add the DFO

**Claude**

1. In [Claude](https://claude.ai), open **Customize**, then **Connectors**.
1. Click **+ Add**, then **Add custom connector**.
1. Enter **DFO** as the name, paste the server URL, and click **Continue**.
1. Claude shows the authentication settings it detected. Click **Continue**.
1. Under **Authentication**, choose **No sign in**, then click **Add**.

The connector works in Claude on the web, the desktop app, Cowork, and the mobile apps. To turn it on in a conversation, click the **+** button below the message box, then **Connectors**. On a Team or Enterprise plan, an owner adds the connector under **Organization settings**, then **Connectors**, and members connect to it.

**ChatGPT**

1. In [ChatGPT](https://chatgpt.com) on the web, open **Plugins**.
1. Click the plus button, then **Add custom MCP server**.
1. Enter **DFO** as the name, and paste the server URL under **Connection**.
1. Set authentication to none.
1. Tick **I understand and want to continue**, then click **Create as a plugin**.

Start a new conversation, type **@** in the message box, and select DFO. Custom MCP servers are available on ChatGPT Business, Enterprise, and Edu plans, and a workspace admin may need to allow them. [OpenAI's help article](https://help.openai.com/en/articles/12584461-developer-mode-apps-and-full-mcp-connectors-in-chatgpt-beta) has the current conditions.

**Gemini**

Custom apps work only in English, for users 18 or over in the US with a personal Google Account and Gemini's **History** on. [Google's help article](https://support.google.com/gemini/answer/17209137) has the current conditions.

1. On a computer, go to [Gemini](https://gemini.google.com).
1. At the bottom, click **Settings**, then **Connected Apps**.
1. Under **Custom apps**, click **Add a custom app**.
1. Paste the server URL, click **Next**, and follow the on-screen steps.

To use the DFO in a chat, type **@** and select it. Once added, the DFO works in the Gemini mobile app too.

**Mistral Vibe**

Only an administrator can add a connector. On Free, Pro, and Student plans, the account owner is the administrator.

1. In [Mistral Vibe](https://chat.mistral.ai), open the **Connectors** page.
1. Click **+ Add Connector**, then open the **Custom MCP Connector** tab.
1. Enter `dfo` as the **Connector name** and paste the server URL as the **Server URL**.
1. Click **Connect**. Vibe detects that the server does not need a sign-in.

[Mistral's guide](https://docs.mistral.ai/vibe/work/web/connectors/mcp-connectors) has the current steps.

**Claude Code**

The `dfo` plugin adds the server and installs the [DFO skills](/docs/start/skills) in one step. Run these commands in a Claude Code session, then start a new session:

```text title="Claude Code"
/plugin marketplace add DevelopmentFinanceObservatory/skills
/plugin install dfo@dfo
```

To add the server alone, run this command in a terminal:

```bash
claude mcp add --transport http dfo https://developmentfinance.org/mcp
```

Add `--scope user` to make the server available in every project.

**Codex**

The `dfo` plugin adds the server and installs the [DFO skills](/docs/start/skills) in one step. Run these commands in a terminal, then start a new Codex session:

```bash
codex plugin marketplace add DevelopmentFinanceObservatory/skills
codex plugin add dfo@dfo
```

To add the server alone, put these lines in `~/.codex/config.toml`:

```toml title="~/.codex/config.toml"
[mcp_servers.dfo]
url = "https://developmentfinance.org/mcp"
```

**Gemini CLI**

Add the server to `~/.gemini/settings.json`, or to `.gemini/settings.json` in one project:

```json title="settings.json"
{
  "mcpServers": {
    "dfo": {
      "httpUrl": "https://developmentfinance.org/mcp"
    }
  }
}
```

## Check that it works

Ask your assistant:

> What is health spending per person in Kenya?

The assistant should show that it is calling a DFO tool, then answer with numbers whose source is World Development Indicators.

When you write a question, name the places, years, and indicator. For example, ask "Rank the ten largest providers of net ODA in 2023" or "Chart Kenya's external debt stock since 2010".

## If it does not work

- If the assistant answers without using the DFO, turn the connector on for the conversation. In ChatGPT, type **@** and select DFO.
- If the assistant cannot reach the server, check that the URL ends in `/mcp` with no slash after it.
- If a request takes too long or fails, ask a narrower question with fewer places or a shorter period, or try again a minute later. A tool call times out after 45 seconds, and the DFO accepts at most 300 requests a minute from one IP address. Claude, ChatGPT, and Gemini call from their providers' IP addresses, so their users share that limit and a request can fail during a busy minute.

[When the DFO cannot answer](/docs/data/when-it-cannot-answer) explains the DFO's refusals. [The MCP server](/docs/reference/mcp) is the developer reference for the endpoint, its tools, the limits, and the error codes.
