/ docs / mcp
Set up the Fettle MCP server
Set up the Fettle MCP server in Claude, ChatGPT, Codex, Cursor or Windsurf: the hosted endpoint with OAuth or an API key, or the fettle-mcp npm package.
Updated · Published
Two channels, same tools
This page is the setup. For what an agent can do with Fettle once it is connected, see the Fettle MCP server.
- Remote —
https://api.fettle.sh/mcp. Nothing to install, and it always offers the current tools. Sign in with OAuth or send an API key. - Local — the
fettle-mcpnpm package, run over stdio by your client, with an API key. For clients that cannot speak remote MCP, or when you would rather the key stayed in a local config file.
Both expose exactly the same tools. Prefer remote when your client supports it.
Both are one entry in the official MCP registry, under the name sh.fettle/mcp — that is what to search for in a client that installs servers from the registry rather than from a config file.
Connect
Pick your client and follow its block.
- claude.ai (OAuth)
- Claude Code (OAuth)
- Codex (OAuth)
- ChatGPT (OAuth)
- Other clients (API key)
- Local server (npx)
claude.ai (OAuth)
- In claude.ai open Settings, then Connectors, then Add custom connector, and enter the URL
https://api.fettle.sh/mcp. - Make sure Sign in now and Register automatically are selected. Fettle does not support “Use Claude’s published identity”.
- Fettle’s consent screen opens on fettle.sh. Choose the organization and Read only or Read and write. Connections of the same app already in that organization are listed, each with an optional Disconnect tick.
It is one connector per organization: claude.ai refuses a second connector with the same URL, so one claude.ai account gets one organization. Reconnect the connector to switch organization or to add write access; when a write tool needs more access, claude.ai asks “Allow additional access to continue”.
Disconnecting in claude.ai does not tell Fettle. The connection stays in Settings, then Connected apps, marked “Unused for N days” after a week, and can be disconnected there.
Claude Code (OAuth)
claude mcp add --transport http fettle https://api.fettle.sh/mcpThen run /mcp in Claude Code and authenticate. The browser opens Fettle’s consent screen, where the app shows as “Claude Code”: choose the organization and Read only or Read and write.
For two organizations, add two servers with different names on the same URL — for example fettle-a and fettle-b — and authorize each to its own organization.
Codex (OAuth)
codex mcp add fettle --url https://api.fettle.sh/mcpWhen Codex detects OAuth, it opens the browser on Fettle’s consent screen: choose the organization and Read only or Read and write. If the browser does not open, or to sign in again later, run codex mcp login fettle. For a second organization, add a second server under another name.
ChatGPT (OAuth)
- Open ChatGPT, then Plugins.
- Click +, then Add custom MCP server.
- Enter a name (for example Fettle), the URL
https://api.fettle.sh/mcp, and OAuth as the authentication type. - Confirm the risk warning.
- Click Create as a plugin.
- Open the new plugin and install it, then sign in and approve on Fettle’s consent screen.
Other clients (API key)
Any client that speaks remote MCP can send a Fettle API key as a bearer token instead of signing in. Create the key under API keys in the dashboard sidebar — see the API keys guide. The config file differs by client; the two fields never do:
{
"mcpServers": {
"fettle": {
"url": "https://api.fettle.sh/mcp",
"headers": { "Authorization": "Bearer fettle_your_key_here" }
}
}
}Claude Code takes the key as a header on the command line:
claude mcp add fettle --transport http https://api.fettle.sh/mcp \
--header "Authorization: Bearer fettle_your_key_here"Codex reads its MCP servers from ~/.codex/config.toml and takes the key from an environment variable, so it never sits in the file — export FETTLE_API_KEY in the shell Codex starts from:
[mcp_servers.fettle]
url = "https://api.fettle.sh/mcp"
bearer_token_env_var = "FETTLE_API_KEY"Local server (npx)
Requires Node.js 20 or newer and an API key. Nothing to install ahead of time — your MCP client fetches and runs the package on demand.
claude mcp add fettle \
--env FETTLE_API_KEY=fettle_your_key_here \
-- npx -y fettle-mcpcodex mcp add fettle \
--env FETTLE_API_KEY=fettle_your_key_here \
-- npx -y fettle-mcpClaude Desktop, Cursor and Windsurf use a JSON file instead — claude_desktop_config.json, ~/.cursor/mcp.json and ~/.codeium/windsurf/mcp_config.json respectively. All three take the same block:
{
"mcpServers": {
"fettle": {
"command": "npx",
"args": ["-y", "fettle-mcp"],
"env": { "FETTLE_API_KEY": "fettle_your_key_here" }
}
}
}Restart the client after editing its config: most read MCP settings only at launch.
Tools
Read tools need read access; write tools need write access — a write-scoped API key, or an OAuth connection with Read and write. Ask for something a read-only connection cannot do and the assistant is told so in words — it will not fail silently.
| Tool | Scope | What it does |
|---|---|---|
| list_monitors | read | Find monitors in the organization by name, target, type, status or tag. |
| list_tags | read | List the tags used in the organization, most-used first, each with monitor_count and heartbeat_count, as items. |
| get_monitor | read | Read one monitor's full configuration and current state. |
| create_monitor | write | Create one monitor that checks a URL, host or port on a schedule from one or more regions, and return it in the get_monitor shape. |
| bulk_create_monitors | write | Create 1 to 100 monitors in one call, all or nothing; for a single monitor use create_monitor. |
| bulk_pause_monitors | write | Pause up to 100 monitors in one call, all or nothing: no checks run and each open incident closes without an alert. |
| bulk_resume_monitors | write | Resume up to 100 paused monitors in one call, all or nothing; each goes back to PENDING and is checked within seconds. |
| bulk_update_monitors | write | Set the same interval, timeout, regions, channels or threshold on up to 100 monitors in one call, all or nothing. |
| get_exposed_ports_preset | read | List the ports that should never be reachable from the internet (databases, queues, admin panels). |
| update_monitor | write | Change one monitor's settings and return it in the get_monitor shape. |
| pause_monitor | write | Stop checking one monitor without deleting it: its status becomes PAUSED and an open incident on it closes without a recovery alert. |
| resume_monitor | write | Restart checks on one paused monitor: its status goes back to PENDING and it is checked within seconds. |
| delete_monitor | write | Delete one monitor: it stops being checked and disappears from the organization's monitors, and no tool restores it. |
| check_now | write | Check one existing monitor within seconds instead of waiting out its interval, for example to confirm a fix. |
| bulk_update_monitor_tags | write | Add and/or remove tags across up to 300 monitors in one call, all or nothing: each monitor ends with (its tags | add) - remove. |
| get_uptime_summary | read | Report one monitor's uptime percentage, average response time and incident count over the last 24 hours, 7 days and 30 days at once, to answer how reliable it has been. |
| get_plan_usage | read | Show the organization's plan, its limits and current usage, to check that new monitors, heartbeats or regions fit before creating them or to explain a 403 naming a limit. |
| list_incidents | read | List the organization's monitor and heartbeat incidents, newest first (or by attention with sort), to see what is or was down and which alerts went out. |
| acknowledge_incident | write | Mark an open incident as being handled so it is left out of reminder digests; the recovery alert still goes out when it resolves. |
| list_heartbeats | read | Find heartbeat (cron / dead-man's-switch) monitors. |
| create_heartbeat | write | Create a heartbeat: Fettle alerts when a scheduled job stops calling its ping_url. |
| get_heartbeat | read | Read one heartbeat in full, including how long its last run took. |
| get_heartbeat_uptime | read | Report one heartbeat's uptime over the last N days or a date range, in total and per UTC day, to answer how reliable a job has been. |
| update_heartbeat | write | Change one heartbeat's name, timing, channels or tags; only the fields you pass change. |
| bulk_update_heartbeat_tags | write | Add and/or remove tags across up to 300 heartbeats in one call, all or nothing: each heartbeat ends with (its tags | add) - remove. |
| pause_heartbeat | write | Pause one heartbeat: it is no longer reported late, pings to its ping_url are accepted but ignored, and its open incident closes without an alert. |
| resume_heartbeat | write | Resume one paused heartbeat: it goes back to PENDING with no deadline, so it is not reported late until its next success ping restarts the clock. |
| delete_heartbeat | write | Delete one heartbeat for good: its ping_url stops working (404) and no tool restores it. |
| list_maintenance_windows | read | List every maintenance window of the organization, enabled or not, in effect or not. |
| list_active_maintenance | read | List the enabled maintenance windows in effect at this moment, to tell whether a monitor's alerts are silenced now. |
| get_maintenance_window | read | Read one maintenance window with its schedule and its next three occurrences. |
| create_maintenance_window | write | Create a one-time or recurring maintenance window that silences new alerts for some or all monitors. |
| update_maintenance_window | write | Change one maintenance window's name, schedule, scope or monitors, or switch it off with enabled false; only the fields you pass change. |
| delete_maintenance_window | write | Delete one maintenance window; alerts for its monitors resume at once and no tool restores it. |
| preview_maintenance_window | write | Compute the next three occurrences, each with start and end, that a schedule would produce, without saving anything. |
| list_status_pages | read | List the organization's public status pages. |
| list_check_results | read | List one monitor's individual check results, newest first, to find out why it is DOWN: which regions fail and with what status code or error. |
| list_changes | read | List confirmed changes to what monitors observe on their targets, newest first. |
| get_response_time_by_region | read | Chart one monitor's average response time over time, one series per region, to see where it is slow and since when. |
| get_uptime_daily | read | Report one monitor's uptime for each UTC day, oldest first and ending today, to find the day an outage or degradation began. |
| get_incident | read | Read one incident in full, with every alert sent for it. |
| get_incident_context | read | Read everything around one incident beyond its row: who acknowledged it, how each region's checks went, the latest checks, a per-region timeline and the downtime periods. |
| get_incident_diagnosis | read | Read what changed around a monitor incident, computed from the checks Fettle already holds. |
| rename_tag | write | Rename a tag on every monitor and heartbeat that carries it; an item that already has the new name keeps one copy. |
| delete_tag | write | Remove a tag from every monitor and heartbeat that carries it; the items themselves stay, and no tool restores the tag. |
| get_status_page | read | Read one status page with its components. |
| list_status_page_incidents | read | List the incidents shown on one status page, newest first, both posted by a person and opened by Fettle. |
| draft_status_page_post | read | Write the text of the page's next incident post from the monitor outages affecting it. |
| create_status_page_incident | write | Open a new incident on a status page with its first message, to tell the page's visitors about an outage. |
| post_status_page_update | write | Add a message to an existing status page incident and set its status; RESOLVED closes it. |
| update_status_page_incident | write | Change a status page incident's title without telling anyone: nothing is sent to subscribers. |
| delete_status_page_incident | write | Remove an incident and its timeline from a status page; it stops showing at once, nothing is sent to subscribers, and no tool restores it. |
| list_channels | read | List the organization's notification channels, to get the ids that channel_ids of monitors and heartbeats take: every member's own email channel, then up to 100 others (added email addresses first). |
| list_regions | read | List every check region of the platform, to show the user where checks can run. |
| check_target | write | Run one real check of a target from one region chosen by Fettle, without creating anything. |
| record_deploy | write | Record that a deploy happened: the commit or tag (ref), when it finished (deployed_at) and which monitors it touched (monitor_ids, or tag + tag_match). |
| verify_deploy | read | Compare monitors before and after a deploy, without running any check. |
Generated from the tool contract at api.fettle.sh/public-api/mcp-tools.json, the same document both channels read.
Does the MCP server have its own rate limit?
No. A tool call is an API call: it spends one unit of your organization’s per-minute request budget, the same budget your own scripts use. There is no separate MCP allowance and no surcharge. Apps you connect by signing in also share a cap of half that budget per user. The numbers per plan are on the API keys page.
Troubleshooting
- The assistant sees no Fettle tools. Restart the client. For the local server, check
node -vreports 20 or newer, then runnpx -y fettle-mcpin a terminal: it should print a missing-key message and exit, which proves the package itself runs. - Authentication failed. The key is wrong, revoked, or from a deleted organization. Create a fresh one and restart the client so it picks the new value up.
- A tool needs write scope. The key is read-only. Create a write-scoped key — the dashboard does not widen an existing key’s scope. With OAuth, reconnect and choose Read and write.
- “Your role in this organization is Viewer…” A write was refused because of your role in the organization, not because of the connection. An organization owner or admin changes the role.
- Old connections pile up for Claude Code and other local clients. Local clients redirect to a local port that can differ between sign-ins, so the consent screen cannot recognise their earlier connections as the same app and does not list them. Manage and disconnect them in Settings, then Connected apps.