# Adding MCP connectors

MCP (Model Context Protocol) servers give your agent external tools. Configure them once: the same servers and OAuth tokens work in your terminal, on your cloud computer, and in [workflow runs](/docs/guides/automating-sessions). Local and remote copies stay aligned via [How it works](/docs/how-it-works#zero-configs).

## Adding MCP servers locally

1. In your terminal, go to `~/.fl0w/mcp.json` (or use [`fl0w mcp add`](/docs/cli#mcp-servers) from the [CLI reference](/docs/cli)).
2. Add the server to the json config. After editing, run [`fl0w reauth`](/docs/cli#account-and-sync) for OAuth servers, or enable them per session with [`/configure`](/docs/slash-commands).

### For OAuth Servers

```
// MCP server using HTTP or SSE - runs on a server
{
  "mcpServers": {
    "server-name": {
      "url": "http://localhost:3000/mcp",
      "headers": {
        "API_KEY": "value"
      }
    }
  }
}
```

### For static OAuth
```
{
  "mcpServers": {
    "oauth-server": {
      "url": "https://api.example.com/mcp",
      "auth": {
        "CLIENT_ID": "your-oauth-client-id",
        "CLIENT_SECRET": "your-client-secret",
        "scopes": ["read", "write"],
        "callbackPort": 3118
      }
    }
  }
}
```

## Adding MCP servers remotely

Add any remote MCP directly in the `MCP` tab of your remote computer fl0w (open the app via [Quickstart — Starting fl0w remotely](/docs/quickstart#starting-fl0w-remotely)).

<Image src="/docs/add-mcp.png" width={2158} height={1606} alt="Adding a remote MCP server in the MCP tab" 
  className="mt-4 h-auto w-full max-w-2xl rounded-lg border border-line/80" />

Changes on either side sync automatically; you can also run [`fl0w sync`](/docs/cli#account-and-sync) after manual edits. MCP tools are available in interactive sessions and in unattended [`fl0w workflow`](/docs/cli#fl0w-workflow) runs when saved on the workflow.

