⚡ OpenAPI → MCP, in one command

Turn any API into an MCP server a model can actually use.

Point kiid-mcp at an OpenAPI document and get a complete, buildable ASP.NET Core MCP server — MCP, REST and streaming endpoints, a deterministic intent classifier, persistent chat, Scalar API docs and a full PostgreSQL audit trail. No model runs on the request path. Every operation becomes a typed tool.

kiid-mcp — new
# 1. preview the tools kiid-mcp will generate (writes nothing)
$ kiid-mcp inspect --spec https://api.example.com/openapi.json
  27 operations → 27 tools   (Read 11 · List 6 · Create 5 · Update 3 · Delete 2)

# 2. generate a complete ASP.NET Core MCP server
$ kiid-mcp new --spec ./openapi.json --out ./Payments.Mcp
  ✓ scaffolded solution   ✓ dotnet build   ✓ dotnet test  (all passed)

# 3. run it
$ dotnet run --project src/Payments.Mcp.Api
  now listening on http://localhost:5080   docs → /docs   mcp → /mcp

What you get

A production-shaped server, not a toy wrapper

Every generated project follows Clean Architecture + DDD and references a signed, maintained runtime. You own a small, readable repo; the engine stays maintained for you.

🧰

Every operation is a tool

Each OpenAPI operation becomes a typed MCP tool with parameters, intent category and risk level.

🔌

MCP · REST · SSE

Streamable HTTP MCP at /mcp, a REST surface, and Server-Sent-Events streaming — same dispatch pipeline.

🧭

Deterministic routing

A lexical intent classifier routes free text to the right tool. No model in the request loop — predictable and free.

💬

Persistent conversations

Chat context is saved server-side in SQLite with a configurable retention window (capped at 12h). Resume across refreshes and devices.

📚

Scalar API docs

An interactive Scalar reference at /docs, backed by a live OpenAPI document at /openapi/v1.json.

🛡️

Policy + audit

Read-only / confirm-destructive policy, result-size guardrails, and a fail-closed PostgreSQL audit trail of every call.

🕑

Time resolver

Built-in get_current_time and natural expressions like “next friday”, “end of month”.

🗣️

Response narrator

Turns raw API responses into short human sentences — “Found 3 pets.”, “No order 7 was found.”

🖥️

Browser chat client

A prebuilt React app (kiid-mcp ui) that talks to any forged server — chat, dev console and a tool browser.

How it works

From spec to running server in five deterministic steps

The scaffold is fully deterministic. A model (Claude, OpenAI, Ollama) is optional and only polishes tool descriptions, intent keywords and narration — its output is validated, and deterministic defaults stay in place if a call fails.

1

Spec Analyst

Loads Swagger 2.0 / OpenAPI 3.0 (file or URL): operations, parameters, bodies, security.

2

Tool Planner

Names tools, types parameters, assigns intent + risk, resource nouns, keywords.

3

Enricher

Optional LLM pass with strictly validated output — descriptions and narration.

4

Scaffolder

Writes the full solution from deterministic templates.

5

Verifier

dotnet build + dotnet test on the generated solution.

MCP client Claude · Cursor · agent Generated ASP.NET Core server /mcp · /api /docs · /stream classify → policy dispatch → narrate SQLitesessions Postgresaudit Upstream API your OpenAPI service
The boundary: the model that decides which tool to call runs in the client, not here. On the request path the server makes no LLM calls — it executes the chosen tool, enforces policy, audits it, and narrates the result. That keeps every dispatch deterministic, cheap and testable.

Quickstart

Up and running

Requires the .NET 10 SDK. Docker is used only for the Postgres audit database.

1

Install the CLI

# Windows (PowerShell) irm https://ostersono.com/kiid-mcp/install.ps1 | iex # macOS / Linux curl -fsSL https://ostersono.com/kiid-mcp/install.sh | bash
2

Inspect before you generate

Preview the planned tools, their HTTP operation, intent and risk — writes nothing.

kiid-mcp inspect --spec https://api.example.com/openapi.json
3

Generate

kiid-mcp new --spec ./openapi.json --out ./Payments.Mcp

Builds and tests the generated project by default. Scope a big API with --tags a,b; set the port with --port.

4

Configure the upstream & run

# set BaseUrl + auth in src/<Name>.Api/appsettings.json, then: docker compose up -d postgres dotnet run --project src/Payments.Mcp.Api # http://localhost:5080

Credentials go in user-secrets or environment variables, never in appsettings.

5

Connect an AI client

claude mcp add --transport http payments http://localhost:5080/mcp

The scaffold already ships .mcp.json (Claude Code) and .cursor/mcp.json (Cursor).

The generated server

Endpoints on every forged server

Beyond /mcp, the same tool dispatch is exposed over REST in two answer modes, plus docs, persistence and audit. GET forms only call read-only (Safe) tools; anything that mutates needs POST.

MethodEndpointWhat it does
GET/docsInteractive Scalar API reference
GET/openapi/v1.jsonThe server's own OpenAPI document
POST/mcpModel Context Protocol (Streamable HTTP)
POST/api/askFull answer — one JSON result when the call finishes
SSE/api/streamSame call streamed as Server-Sent Events
GET/api/toolsBrowse the tool catalog (filter by category / risk)
POST/api/sessionsPersistent conversations (SQLite, 12h-capped retention)
GET/api/auditAudit trail & stats of every dispatched call
GET/api/infoLive endpoint map, tool counts, upstream & policy
GET/healthLiveness

See it working

Screenshots

The frames below are placeholders. Capture each screen from a running server and drop the image into site/images/ with the matching filename — the slot will show your screenshot automatically. (Capture steps are in the README next to this page.)

localhost:5080/docs
🖼️
Scalar API reference
images/01-docs-scalar.png
The interactive Scalar docs at /docs — every generated tool, browsable and callable.
localhost:5173
🖼️
kiid-chat browser app
images/02-kiid-chat.png
The prebuilt chat client (kiid-mcp ui) streaming an answer, with persistent sessions.
localhost:5080/api/info
🖼️
/api/info response
images/03-api-info.png
The live endpoint map — tool counts, upstream, policy and the full endpoint list.
Claude / Cursor — MCP tools
🖼️
Tools inside an MCP client
images/04-mcp-client.png
The generated tools connected to Claude Code or Cursor over /mcp.