TypeScript layer for MCP servers on a network: scoped bearer tokens, per-token rate limits, typed zod tools, JSON audit logs. Streamable HTTP and stdio.
View on GitHub ↗A small TypeScript framework for building Model Context Protocol servers that are safe to put on a network.
The official @modelcontextprotocol/sdk gives you the protocol and the transports. It leaves out everything around them: who is calling, what they may do, how often, and what happened. Every MCP server that leaves localhost ends up writing that layer. mcp-kit is that layer, kept small enough to read in one sitting (roughly 1,000 lines of non-comment code in src/).
- Scoped bearer tokens. Tokens look like mcpk. Only a SHA-256 hash is stored, lookup is by the public id, and comparison is constant time. Each token has a set of scopes (read, write, or your own). - Scope-aware tools. tools/list only shows a caller the tools its token can use. tools/call checks the scope again before anything runs. - defineTool(). A zod schema, a required scope and a typed handler. Input is validated, defaults are applied, and failures come back as structured errors with field paths. - Per-token rate limiting. A token bucket with a pluggable store interface. The default store is in-memory. Requests over the limit get 429 with Retry-After. - Structured logs and audit events. JSON lines on stderr, request ids that you can pass in with X-Request-Id, redaction of secret-looking fields, and one audit event per tool call through a hook you can replace. - Both transports. Streamable HTTP (stateless) for remote clients and stdio for local ones, running the same tools. - Token CLI. Mint, list and revoke tokens. The plaintext is printed once. - Example server. Notes CRUD over an in-memory store, wit
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/mayank-urnextdoor--mcp-kit.html)
One MCP server for every account your AI assistant uses. Self-hosted and open source.
Ryrahul/session-relayShare AI coding-agent sessions with your team: /share in Claude Code, Codex, OpenCode, Gemini CLI, Copilot CLI, Cursor or ZCode, /pickup in another. Self-hosted, open source.
qybaihe/hash-designLet a true-random hash pick the design direction, not the model. MCP server + Agent Skill + CLI + TypeScript library mapping hashes onto 40 real-world design genres.
techsaurabh-394/mcp-notes-serverTypeScript MCP server that gives AI assistants a searchable notes store (6 typed tools)
alperensarikavak/slimcpCut MCP tool token usage by 90%+. Audit how much context your MCP servers eat and slim it down with a smart proxy — Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, Codex.
heitorcarvalhohlbryzeis6-cloud/whatsapp-mcp-serverWhatsApp MCP Server for AI Agents - TypeScript, Baileys and Cloud API
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.