Skip to content

MCP servers in Nim.

Tools, resources, prompts, transports, tasks, and authorization for the Model Context Protocol, in native Nim code.

Typed tools

Register raw JSON handlers or typed procs, and let nimwire derive the MCP input and output schemas at compile time.

Resources and prompts

Static and templated resources with text or binary contents, plus typed prompts with completion hooks.

Stdio and HTTP

Serve newline-delimited JSON-RPC over stdio, or adapt Streamable HTTP requests into any web framework.

Production controls

Bearer authorization, bounded security limits, cancellation, progress, deadlines, and optional request observability hooks.