New · API & MCP
Your cockpit, right inside Claude and your own tools.
With the Cockpit API and MCP server, AI assistants and your software query clients, receipts, cases and VAT receipts – only what you allow, every access logged.
What you can do with the API and MCP
Your data stays in the cockpit. Assistants and programs read it where you already work.
Claude asks your cockpit
“Which receipts for client Miller still have an open question?” – Claude calls the right tool and answers with real numbers.
Leads in your own CRM
Pull new leads and form submissions, including the agents’ rating, into your CRM or data warehouse via REST.
Check the VAT return
Recognised supplier, gross amount, tax rates and direction of every receipt for your own analysis or your accountant’s software.
Automate reporting
Daily figures from cases and receipts in spreadsheets, dashboards or Slack – no manual exports.
MCP server: connect Claude & co. with one command
The Model Context Protocol (MCP) is the open standard AI assistants use to call tools. Our MCP server runs via Streamable HTTP at /api/mcp – nothing to install on your side.
- In the cockpit, create an API key with the permissions you need under Admin → Connections.
- Add the server with the key in Claude Code, Claude Desktop or any other MCP client.
- Ask away – the assistant only sees the tools your key allows.
Claude Code
claude mcp add --transport http cockpit \ https://cockpit.mysoftwarelab.com/api/mcp \ --header "Authorization: Bearer msl_live_…"
Claude Desktop · claude_desktop_config.json
{
"mcpServers": {
"cockpit": {
"command": "npx",
"args": ["mcp-remote", "https://cockpit.mysoftwarelab.com/api/mcp",
"--header", "Authorization: Bearer ${COCKPIT_KEY}"],
"env": { "COCKPIT_KEY": "msl_live_…" }
}
}
}REST API for your software
Plain HTTPS and JSON, described as OpenAPI 3.1. Ideal for integrations, scripts and data pipelines.
curl https://cockpit.mysoftwarelab.com/api/v1/belege?status=rueckfrage \
-H "Authorization: Bearer msl_live_…"
# Response (shortened)
{ "belege": [ { "id": "8f3c…", "firma": "Müller GmbH", "status": "rueckfrage",
"rueckfrage": "Hospitality receipt: purpose missing" } ] }
Endpoints and MCP tools (version 1)
| MCP tool | REST endpoint | Permission (scope) | Returns |
|---|---|---|---|
arbeitsbereich_info | GET /api/v1/arbeitsbereich | – | workspace, permissions and rate limit of the key |
mandanten_auflisten | GET /api/v1/mandanten | mandanten:lesen | clients with chart of accounts and tax method |
mandant_lesen | GET /api/v1/mandanten/{id} | mandanten:lesen | a single client |
belege_auflisten | GET /api/v1/belege | belege:lesen | receipts with status, questions and AI extraction |
vorgaenge_auflisten | GET /api/v1/vorgaenge | vorgaenge:lesen | cases, leads, agent results |
vorgang_lesen | GET /api/v1/vorgaenge/{id} | vorgaenge:lesen | a single case with history |
ust_belege_auflisten | GET /api/v1/ust/belege | ust:lesen | VAT receipts with amounts and tax rates |
Secure by design
One key, one workspace
Every API key belongs to exactly one workspace. The database additionally separates tenants with row-level security.
Permissions, not full access
Scopes such as belege:lesen or ust:lesen define what a key may do. Version 1 is read-only.
Audit log
Every call – REST or MCP – is logged with time, tool and result and can be reviewed in the cockpit.
Rate limits
Up to 120 requests per minute and key, with clear headers and Retry-After.
Revoke in seconds
Keys expire or are revoked with one click. Only a hash is stored, never the key itself.
Hosted in the EU
Application in Frankfurt (Vercel fra1), database at Neon in Frankfurt.
Frequently asked questions about the API and MCP
What is an MCP server?
MCP (Model Context Protocol) is an open standard from Anthropic that lets AI assistants such as Claude use external tools and data. The cockpit’s MCP server exposes your clients, receipts and cases as tools.
Which AI assistants work?
Any MCP client with Streamable HTTP transport and a custom Authorization header, e.g. Claude Code, Claude Desktop (via mcp-remote), Cursor or VS Code. Your own programs use the REST API.
Can the AI change or delete data?
No. Version 1 is strictly read-only. Write permissions (e.g. uploading receipts) will follow later and require their own scope.
How do I get an API key?
Customers with their own cockpit create keys under Admin → Connections. The API is not active in the demo with sample data.
Does the AI provider see my data?
Only the results of the tools the assistant calls are sent to its model. Choose scopes sparingly and use a separate key for sensitive areas.
Is there documentation?
Yes, the full description of all endpoints is available as OpenAPI 3.1 at /api/v1/openapi.json.