CentralOps MCP Server
Click on "Install 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., "@CentralOps MCP Servershow quarantine events for integration 42"
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.
CentralOps MCP Server
Model Context Protocol (MCP) server that exposes a curated subset of the CentralOps HTTP API as typed tools, so internal developers can drive drift triage, mapping edits, backfill jobs and quarantine reprocess from Claude Code without writing raw HTTP calls.
The server runs as a stdio MCP transport inside a container — Claude Code spawns
docker run --rm -i ... per session, no extra service is added to the CentralOps
compose stack, no port is exposed.
Status
Stable for internal use. Authenticates with a CentralOps Personal Access Token
(PAT) or Service Account token issued at /settings/tokens — the same
credential model used by external integrations. Cookie/session auth was removed
in Fase 2 (commit history under feat(pat): …).
Related MCP server: chimeralang-mcp
Tools
25 tools, grouped by what they let the agent see or do.
Vendor-side visibility (read)
How the vendor is connected, healthy and behaving.
Tool | Purpose |
| Vendors connected, status, last_error, capabilities. |
| Full configuration of one integration (secrets masked unless permitted). |
| Live health check (manager + indexer for Wazuh, OAuth for Sophos…). |
| Aggregated dashboard: counters, recent activity, per-stream summary. |
| Alerts already collected and normalized for an integration. |
| Platforms the backend can connect to. |
Collection pipeline (read)
What is being polled and from where.
Tool | Purpose |
| (platform, stream) pairs the collector knows how to poll. |
| Per-stream cursor, last_success_at, last_error, consecutive_failures. |
| Global view across all integrations the user can see. |
Raw payloads & drift (read — the "what is the vendor sending?" set)
Tool | Purpose |
| Raw events from the sample reservoir for a (vendor, event_type) — the actual JSON the collector received. |
| One quarantined event with its full |
| Quarantined events, filterable by vendor/integration/error_kind. |
| Unknown raw fields the drift sampler observed but no mapping consumes. |
| Fields already discovered for this mapping's vendor/event_type — JMESPath autocomplete source. |
Mappings catalog & history (read)
Tool | Purpose |
| Catalog of mapping definitions. |
| Definition + version history for a single mapping. |
| Structured diff between two versions of a mapping. |
| Who changed what, when. |
Backfill (read)
Tool | Purpose |
| Jobs for an integration. |
| One job snapshot. |
Mutating — safe
Tool | Purpose |
| Validate rules against the sample reservoir. Issues an |
| Enqueue a backfill window (max 90 days). Returns |
| Reprocess up to 50 quarantined events. Backend is idempotent. |
Destructive — gated
Tool | Purpose |
| Promote a new mapping version. Requires a fresh |
Helper
Tool | Purpose |
| Server-side poll until terminal state. Avoids LLM polling loops. |
commit_mapping is the only destructive tool. It requires an ack_token issued
by dry_run_mapping for the same definition_id and rules; the token expires in
5 minutes and is single-use. The CentralOps backend re-validates and re-runs the
dry-run on commit, so this is defense-in-depth, not the security boundary.
Authentication
The MCP server sends Authorization: Bearer <token> on every request. Generate
the token in CentralOps:
Log in to CentralOps as the user that should "own" the MCP traffic.
Go to Settings → API Tokens (
/settings/tokens).Click Criar token, give it a name (e.g.
claude-code-mcp), pick an expiration (or "Nunca" for a stable dev workflow), and copy thecopsk_…value once — the UI will not show it again.Optional: select scopes. Without scopes the token inherits the full permission set of the user. For an MCP that only needs to read drift / mappings, restrict to e.g.
mappings.read,quarantine.read,integrations.read,audit.read.Export the token in your shell or paste it into the MCP config below.
Tokens are revocable individually from the same page — losing the laptop or ending the contract no longer means rotating a shared cookie.
A X-Client: centralops-mcp/<version> header is sent on every request so the
backend audit log can distinguish MCP traffic from UI traffic.
When the token is rejected the tool returns a 401 with a hint to regenerate at
/settings/tokens. When the token is valid but lacks the scope a tool
requires, the response is 403 with a permission hint.
Configuration
Env var | Default | Required | Notes |
|
| recommended | Trailing |
| — | yes | PAT or Service Account token starting with |
|
| no | Per-request timeout. |
|
| no | Set to |
|
| no |
|
Build
docker build -t centralops-mcp:dev mcp/Use from Claude Code
Add to .mcp.json (project) or your Claude Code user settings:
{
"mcpServers": {
"centralops": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "CENTRALOPS_BASE_URL",
"-e", "CENTRALOPS_API_TOKEN",
"centralops-mcp:dev"
],
"env": {
"CENTRALOPS_BASE_URL": "https://centralops.local/api",
"CENTRALOPS_API_TOKEN": "copsk_..."
}
}
}
}Then restart Claude Code and run /mcp to confirm the tools are listed.
The token is sensitive — do not commit
.mcp.jsonwith a real value. Prefer reading from your shell, e.g.CENTRALOPS_API_TOKEN=$(pbpaste), or store it in a secret manager (1Password, macOS Keychain, etc).
Local development
cd mcp
python -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/pip install pytest pytest-asyncio
.venv/bin/pytestSmoke test the image
The MCP handshake requires initialize → notifications/initialized →
tools/list. The trailing sleep keeps stdin open long enough for the server
to emit the second response before EOF closes the pipe:
{
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}'
printf '%s\n' '{"jsonrpc":"2.0","method":"notifications/initialized"}'
printf '%s\n' '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
sleep 2
} | docker run --rm -i \
-e CENTRALOPS_BASE_URL="http://localhost:3000/api" \
-e CENTRALOPS_API_TOKEN="copsk_..." \
centralops-mcp:devYou should see two JSON-RPC responses; the second contains all 11 tools with their schemas.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SEGARK-oficial/centralops-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server