pitropatro

Developer kit · TypeScript

MCP Secure Server Kit

A remote MCP server starter you can take straight to your security review. OAuth 2.1, per-tool scopes, rate limits and audit logs, each backed by tests you run in CI.

$79 one-time · company licence · source code

Get notified at launch

Checkout opens shortly. Email us and we'll send you the link the day it does.

The problem

The MCP quickstart gives you a working server in ten minutes. Then the security review asks: how are tokens validated? Can a token issued for another API call this server? Can a read-only client run the write tool? Who called which tool, and when? What happens when an agent loops? This kit answers each question in code, with a test.

What you get

OAuth 2.1 resource server, as the MCP spec describes it

Protected Resource Metadata (RFC 9728), WWW-Authenticate discovery challenges, and JWKS-based JWT validation with issuer, audience binding (RFC 8707), expiry and an algorithm allowlist.

No token passthrough

Tool code never sees the raw user token. Downstream calls use the server's own credentials through an included client-credentials helper.

Per-tool scopes, deny by default

Each tool declares the scopes it needs. A missing scope returns a spec-compliant 403 insufficient_scope step-up challenge.

Rate limits per tenant and per tool

In-memory token buckets, plus a Redis implementation for scale-out with its own integration tests.

Audit log for every tool call

One JSON line per call: who, client, tenant, tool, an argument digest (raw arguments are not logged by default), status and latency.

Hardening

Strict zod input schemas, output size caps, timeouts, sanitised errors, Origin and Host checks, body limits and a non-root distroless container.

84 security tests

Run with no network and no IdP account, on every commit, with a ready GitHub Actions workflow.

IdP guides and deploy recipes

Okta, Microsoft Entra ID, Auth0 and Keycloak setup, docker-compose with a pre-configured Keycloak, and Fly.io and Cloudflare Workers recipes.

Docs for your reviewer

A security checklist that maps each control to the MCP spec and the OWASP API and LLM Top 10, plus a STRIDE threat model.

What's in the zip

FAQ

Does it handle login?

No. It is the resource server half, which is what an MCP server is supposed to be. Login, consent and client registration stay with your identity provider.

Which spec and SDK?

MCP spec revision 2026-07-28 on the official TypeScript SDK v2 (@modelcontextprotocol/server 2.3.1), Node 24. Older 2025-era clients are served through stateless fallback.

Python?

Not yet. TypeScript only.

What does the licence allow?

One purchase covers your whole company: unlimited internal projects and MCP servers you offer to your own customers. You may not resell or redistribute it as a starter kit or template.

Does it guarantee we pass review?

No product can promise that. You get a tested, documented answer to the questions reviewers ask most.

Refunds?

14 days, no questions asked. See the terms.

Questions

Ask before you buy.

hywook4@gmail.com