Seiri MCP
Official# Seiri MCP (`@seiri-app/mcp`)
Official [Model Context Protocol](https://modelcontextprotocol.io) server for [Seiri](https://seiri.app).
Agents use it to **create heartbeat monitors**, attach channels, configure email heartbeats, and return curl/Python/Node/crontab snippets — so onboarding a new client job does not depend on guessing docs.
Contact: [hello@seiri.app](mailto:hello@seiri.app) · Support: [support@seiri.app](mailto:support@seiri.app) · GitHub: [seiri-app](https://github.com/seiri-app)
---
## Install
```bash
npm install -g @seiri-app/mcp
# or
npx -y @seiri-app/mcp
```
From source:
```bash
npm install
npm run build
node dist/index.js
```
---
## Auth
Same model as `seirictl`:
| Variable | Required | Meaning |
|----------|----------|---------|
| `SEIRI_TOKEN` or `SEIRI_API_KEY` | Yes (for management tools) | Bearer access token (or future `sk_…` org key) |
| `SEIRI_ORG_ID` | Yes (for org tools) | Numeric organization id |
| `SEIRI_API_URL` | No | Default `https://cloud.seiri.app` |
| `SEIRI_INGEST_URL` | No | Default `https://ping.seiri.app` |
Optional `~/.seiri/config.yaml`:
```yaml
api_url: https://cloud.seiri.app
ingest_url: https://ping.seiri.app
token: eyJ...
org_id: "42"
```
---
## Cursor / Claude Desktop
```json
{
"mcpServers": {
"seiri": {
"command": "npx",
"args": ["-y", "@seiri-app/mcp"],
"env": {
"SEIRI_API_URL": "https://cloud.seiri.app",
"SEIRI_INGEST_URL": "https://ping.seiri.app",
"SEIRI_TOKEN": "<access-token>",
"SEIRI_ORG_ID": "<org-id>"
}
}
}
}
```
Local build:
```json
{
"mcpServers": {
"seiri": {
"command": "node",
"args": ["/absolute/path/to/seiri-mcp/dist/index.js"],
"env": {
"SEIRI_TOKEN": "<access-token>",
"SEIRI_ORG_ID": "<org-id>"
}
}
}
}
```
---
## Tools
| Tool | Purpose |
|------|---------|
| `seiri_integrate_job` | **Preferred** — create monitor + return ping URLs + snippets |
| `seiri_create_webhook` | Create Periodic / Cron / On-Demand monitor |
| `seiri_list_webhooks` / `seiri_get_webhook` / `seiri_find_webhook` | Inspect monitors |
| `seiri_delete_webhook` | Delete (requires `confirm=true`) |
| `seiri_test_webhook` | Dashboard test event |
| `seiri_list_webhook_logs` | Recent check-ins |
| `seiri_list_channels` | Notification channels |
| `seiri_configure_email_heartbeat` | `{ref}@ping.seiri.app` |
| `seiri_get_ping_urls` | Resolve success/fail URLs |
| `seiri_ping` | GET ingest URL (no JWT) |
| `seiri_whoami` / `seiri_list_organizations` | Auth / org discovery |
### Resources
- `seiri://docs/integrate-jobs`
- `seiri://docs/domains`
- `seiri://config/status`
### Prompts
- `integrate_cron_job`
- `onboard_new_client`
---
## HTTP transport (hosted)
```bash
export SEIRI_MCP_TRANSPORT=http
export SEIRI_MCP_HOST=0.0.0.0
export SEIRI_MCP_PORT=3100
export SEIRI_MCP_AUTH_TOKEN=$(openssl rand -hex 32) # required off-loopback
export SEIRI_TOKEN=...
export SEIRI_ORG_ID=...
npm start
```
- MCP endpoint: `POST/GET/DELETE /mcp`
- `SEIRI_MCP_AUTH_TOKEN` is **required** whenever `SEIRI_MCP_HOST` is not loopback (the server refuses to start otherwise), because the endpoint acts with your `SEIRI_TOKEN`. Clients send `Authorization: Bearer <token>`.
- Health: `GET /healthz`, `GET /readyz`
Docker:
```bash
docker build -t seiri-mcp .
docker run --rm -p 3100:3100 \
-e SEIRI_TOKEN=... \
-e SEIRI_ORG_ID=... \
-e SEIRI_MCP_AUTH_TOKEN=... \
seiri-mcp
```
---
## Domains (do not mix)
| Host | Use |
|------|-----|
| `cloud.seiri.app` | Dashboard + management API |
| `ping.seiri.app` | Heartbeats only |
Ping shape: `https://ping.seiri.app/webhook/<org-slug>:<webhook-ref>/success`
---
## Development
```bash
npm install
npm run build
npm test
npm run typecheck
```
Docs: https://seiri.app/docs/app-reference/mcp/ · Service notes: `docs/microservice.md`
TDQS
Scored across 14 tools
Core CRUD tools (list/get/create/delete_webhook) are clearly distinct, but several pairs overlap: list_webhooks vs find_webhook (client-side name filter), create_webhook vs integrate_job (which also creates a monitor and returns snippets), and get_ping_urls vs ping vs test_webhook all relate to verifying connectivity. Descriptions give hints about when to prefer which, but an agent could easily misselect among the creation and ping-related tools.
All 14 tools carry the seiri_ prefix and follow a verb_noun pattern (list_webhooks, get_webhook, create_webhook, delete_webhook, get_ping_urls). Minor deviations are the noun-less seiri_whoami and seiri_ping, plus the two-word verb in seiri_configure_email_heartbeat, but the convention remains predictable and readable.
14 tools is well within a reasonable range for a monitoring API surface spanning auth, orgs, monitors, logs, channels, and email heartbeats. A couple of entries are arguably redundant (integrate_job re-covers create_webhook + get_ping_urls; find_webhook duplicates list_webhooks with a filter), but nothing feels bloated.
Monitors have create/get/list/delete plus logs and test, but there is no update_webhook or pause/resume operation, so an agent cannot edit a monitor's schedule, name, or state without deleting and recreating it. Notification channels are read-only (list_channels with no create/update), and org selection is limited to listing. The lifecycle is workable but has real gaps.