Purpose
This project is the MCP (Model Context Protocol) server for the exit1.dev uptime monitoring service, with the goal of connecting monitoring operations to AI assistants. In MCP-capable clients such as Claude Code, Cursor, and Codex, users can have the AI read code repositories, create checks, configure alerts, send real test alerts, and then query uptime in natural language.
Main capabilities
Both connection methods expose the same toolset:
- Hosted version (recommended): no API key, no npm installation, and no plan required to get started. After running the login command in the terminal, the browser opens; log in or sign up via Clerk and approve, and the connection is complete.
- Local stdio: an npm package that uses a Public API key from the dashboard. Suitable for clients that do not support remote MCP servers with OAuth.
The hosted server requests the checks:read, checks:write, alerts:read, and alerts:write scopes by default; it does not include checks:delete, which must be requested explicitly. With stdio, select the required scopes when creating the API key.
The server also includes a setup_monitoring prompt containing the full operating manual; in Claude Code it is /exit1:setup_monitoring.
Usage
Hosted version: run the login command in the terminal before starting a session and complete browser authorization. MCP clients load servers at startup; servers added mid-session become available after a restart. Older Windows PowerShell 5.1 does not support &&, so run the commands separately. If the Claude Code version lacks claude mcp login, authenticate via /mcp after starting claude.
Local stdio: requires Node.js 18+ and a dashboard API key (which can be generated on all plans, including the free plan), or choose account-free mode. Configuration examples for each client:
- Claude Desktop: in ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or % on WindowsAdd the mcpServers configuration in APPDATA%\Claude\claude_desktop_config.json.
- Cursor: Add it in the project's .cursor/mcp.json or the global ~/.cursor/mcp.json; the structure is the same as Claude Desktop.
- VS Code with Copilot: Run MCP: Add Server from the command palette, select Command (stdio), and enter npx -y exit1-mcp; VS Code uses the servers key rather than mcpServers.
- Windsurf / Gemini CLI / Goose: Use the same mcpServers block as Claude Desktop, placing it respectively in mcp_config.json (Windsurf Settings › MCP), ~/.gemini/settings.json, or adding it via goose mcp add exit1 -- npx -y exit1-mcp. Then restart the IDE or CLI.
- ChatGPT: Bridge the stdio server with mcp-remote, then add it in Settings › Connectors.
No-account mode: When EXIT1_API_KEY is not set, the stdio server does not exit; instead it enters setup mode and provides an additional tool, create_account. The agent calls it with an email address, exit1 instantly creates a free account and connects the server, the other tools become immediately available, and monitoring starts running. You can also do this from the terminal before the session. exit1 sends an email link to claim the account; alerts are delivered only after claiming, and the claim page lets you decide whether the agent retains access. Unclaimed accounts are paused after 7 days and deleted after 30 days. The token is stored in ~/.exit1/credentials.json and refreshed automatically; if EXIT1_API_KEY is set, it is always used in preference. Agents that do not use MCP can accomplish the same thing with a single HTTP call (Agent signup).
When to use
Example prompts include: set up monitoring for the current project; check whether any monitors are down; view the API check's uptime over the past 30 days;view the last 10 failures in production; add a check for staging.example.com and send alerts to #ops in Slack; compare this week's response times with last week's.
Limitations and maintenance
Hosted connections can be viewed and revoked at any time at app.exit1.dev/mcp; revocation immediately invalidates all tokens for that client. npm test starts the built server and verifies the number of tools visible to clients, the readOnlyHint/destructiveHint annotations, the setup_monitoring prompt, and that unknown tools return isError rather than a protocol error; the second run checks setup mode when there is no key and no saved credentials. This test requires no API key and makes no network requests.
The tool catalog is deliberately duplicated between this package and the hosted OAuth server (functions/src/mcp-tools.ts in Mopra/exit1.dev); the two are built independently with no shared package. npm run check:catalog fails when tool names or input schemas drift and warns on wording differences; CI runs it on every push and once daily. Changing a tool requires syncing both sides and running the check before release. server.json describes both distribution paths for the official MCP registry; the registry name is dev.exit1/exit1-mcp, and proving control of exit1.dev is required; npm ownership is proven via the mcpName field in package.json, which must match the name in server.json. When releasing, update the version in server.json in sync; the version string in src/index.ts is shown in the client's serverInfo and must stay consistent with package.json.
The license is MIT; the rest of exit1 is source-available rather than open source, and this package is the exception, so that MCP clients can freely review and vendor it.