@apinator/mcp
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@apinator/mcpPublish a test event to the orders channel and watch for it."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@apinator/mcp
Model Context Protocol server for Apinator. It lets an AI agent (Claude Code, Claude Desktop, Cursor, …) publish events, inspect channels and watch live traffic on your Apinator app, so it can build and debug realtime features end to end.
Setup
You need your app's ID, key, secret and cluster from the Apinator console. Node.js 18 or newer.
Claude Code
claude mcp add apinator \
-e APINATOR_APP_ID=your-app-id \
-e APINATOR_KEY=your-key \
-e APINATOR_SECRET=your-secret \
-e APINATOR_CLUSTER=eu \
-- npx -y @apinator/mcpClaude Desktop, Cursor and other clients (mcpServers JSON config)
{
"mcpServers": {
"apinator": {
"command": "npx",
"args": ["-y", "@apinator/mcp"],
"env": {
"APINATOR_APP_ID": "your-app-id",
"APINATOR_KEY": "your-key",
"APINATOR_SECRET": "your-secret",
"APINATOR_CLUSTER": "eu"
}
}
}
}Environment variables
Variable | Required | Description |
| yes | App ID |
| yes | API key |
| yes | API secret. Used to sign requests; never returned by any tool |
| yes | Region the app was created in, e.g. |
| no |
|
| no | REST base URL of a local or self-hosted data plane (default |
| no | WebSocket base URL of a local or self-hosted data plane (default |
The server checks these at startup and exits with a message naming anything missing or malformed.
Related MCP server: console-stream-mcp
Tools
Tool | What it does |
| Publish an event to a channel, or up to 100 channels. |
| Active channels (with at least one subscriber) and their subscriber counts, optionally filtered by |
| One channel's subscriber count, or |
| The |
| Connects over WebSocket, subscribes (signing private/presence auth itself), and collects events for |
Every tool except publish_event is annotated readOnlyHint, so clients can auto-approve them.
A typical end-to-end check an agent runs: start watch_channel on a channel, trigger the code path
that publishes (or call publish_event), and compare the payload with what the client expects.
On cache- channels the last event is replayed to new subscribers, so a watch started after a publish
still receives it.
Resources and prompts
apinator://docs/llms.txt: the Apinator docs index, fetched from https://apinator.io/llms.txt.apinator://reference/protocol: frames, system events, error codes, channel types and the auth signature.Prompt
add-realtime-feature: walks the agent through choosing channels, wiring the server and client SDKs, and verifying withwatch_channel.
Security
The secret stays in the server process. Tool results and errors are scrubbed of it, and API error bodies are shortened to a one-line message.
publish_eventreaches every subscriber of the channel. SetAPINATOR_READ_ONLY=1for an agent that should only look, or use a separate app for development.sign_channel_authproduces valid subscription signatures for any channel name. Only give the server to agents you would trust with your app's auth endpoint.
Development
npm install
npm run build
npm test # unit tests (mocked fetch, local fake WebSocket server)
npm run typecheck # src and testsReleases are cut by release-please from Conventional
Commits on main; the release PR bumps package.json, updates CHANGELOG.md and tags, and the
workflow then publishes to npm.
Maintainers with the Apinator backend checked out next to this repo (../../backend, or set
BACKEND_DIR) can run the integration test and the MCP inspector against a throwaway local stack:
./scripts/local-stack.sh up # builds the backend, starts Postgres/Redis in Docker on spare ports, seeds an app
npm run build && npm run test:integration
./scripts/local-stack.sh downlocal-stack.sh up writes the local credentials to .local-stack/env. It also sets
APINATOR_API_URL and APINATOR_WS_URL, which point the server at a non-production data plane.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Webhooks for AI agents: send events, manage endpoints, inspect and retry deliveries.
Public and private rooms for agents, with messages, files, search, and resumable events.
Webhook capture and replay, delivery pipes, and signed multi-agent rooms. No signup to start.
Webhook, email, WebSocket and tunnel testing for AI agents: capture, wait, verify, replay.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceReal-time observability dashboard for monitoring AI agents in multi-agent development workflows, with live WebSocket updates of tool calls, sessions, and usage statistics.-
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to access live console logs, errors, and network requests from web applications via a local WebSocket connection, without copying data to chat.12 npm19MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to browse, click, and debug real websites in the user's own signed-in browser or a dedicated Chrome instance, with only explicitly shared tabs reachable and revocable at any time. Exposes the full developer toolbox — console, network, sources, debugger, elements, performance and CPU/memory profiling, storage, service workers, coverage, emulation, accessibility, security, Lighthouse, and Playwright-test recording — as first-class tools callable in one step.249 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to operate a LiveKit deployment, managing rooms, tokens, participants, data messages, egress/ingress, and hackathon workshops with one-call room setup, status, broadcast, and teardown tools.MIT