Open-source TypeScript infrastructure for AI agents and the Model Context Protocol (MCP).
An MCP server framework · OpenAPI to MCP tools · A sandbox for agent-written code · In-memory semantic search
Website · FrontMCP docs · Enclave & VectoriaDB docs · Discord · david@frontegg.com
AgentFront builds open-source TypeScript tools that connect AI agents to real software over the Model Context Protocol (MCP). FrontMCP is an MCP server framework for TypeScript. mcp-from-openapi does OpenAPI to MCP: it turns Swagger and OpenAPI specs into MCP tools. Enclave runs the JavaScript an agent writes inside a sandbox, and VectoriaDB gives agents semantic search in memory, with embeddings computed locally. Every project is Apache-2.0 and published on npm.
FrontMCP lets you write MCP tools, resources and prompts as typed TypeScript classes with Zod schemas, and serves them over the Model Context Protocol. It handles transport, sessions, dependency injection and execution flow, and the same server runs locally and in production on Node.js, Vercel, AWS Lambda and Cloudflare Workers. It serves MCP 2026-07-28, the stateless revision, and the earlier ones.
- Auth built in: OAuth 2.1, JWT and session checks, and a credential vault (
@frontmcp/auth) - Testing: Jest fixtures with a connected MCP client and MCP matchers (
@frontmcp/testing) - OpenAPI adapter: generate MCP tools from an OpenAPI spec (
@frontmcp/adapters) - Tool UIs: React widgets for ChatGPT, Claude and other MCP Apps hosts (
@frontmcp/ui) - Plugins: CodeCall, result caching, per-session memory, human approval gates, feature flags and WebMCP
- Production: rate limits and concurrency guards, OpenTelemetry tracing and Prometheus-format metrics
npx frontmcp create my-mcp-server # Node.js 24+Learn at frontmcp.dev, try the browser playground, or see how FrontMCP compares with other TypeScript MCP frameworks.
Give your coding agent the FrontMCP docs
FrontMCP's own MCP server gives coding agents the docs for the FrontMCP release your project uses (Docs for Your Agent). To add it to Claude Code:
claude mcp add --transport http frontmcp-docs https://frontmcp.dev/mcpConvert Swagger 2.0 and OpenAPI 3.0, 3.1 and 3.2 specs into MCP tool definitions: input and output schemas, plus an explicit mapper that says where each argument goes in the HTTP request.
- Resolves parameter name conflicts across path, query, header, cookie and body, and builds the request with OpenAPI's full serialization rules (
buildHttpRequest()) - Emits schemas each client accepts:
target: 'claude' | 'openai' | 'gemini' | 'strict' - Loads untrusted specs safely: SSRF protection while resolving
$refs, and a one-flagsecureDefaultsmode - Curates large APIs: OpenAPI Overlays, lint, filters by tag, method and path, token-budget reports, and Arazzo workflows as tools
- Infers MCP tool annotations (read-only, destructive, idempotent) from HTTP methods
npm install mcp-from-openapiopenapi-spec (upcoming)
Up-to-date TypeScript types and readers for OpenAPI 3.2, 3.1, 3.0 and Swagger 2.0. The upcoming 1.0.0 is its first functional release: types for every version, version detection, one walker for the operations of a path item, and a Swagger 2.0 to OpenAPI 3.0 converter. The code is being extracted from mcp-from-openapi, where it is developed and tested against the official OpenAPI JSON Schemas, and a weekly check against the OpenAPI Initiative's published sources flags new spec versions. npm 0.0.1 only reserves the name: watch the repository to hear when 1.0.0 ships.
Convert JSON Schema (Draft 7+) to Zod v3 validation schemas in TypeScript, with ReDoS protection for pattern on by default.
npm install json-schema-to-zod-v3 zod@^3.23.8A sandbox for JavaScript written by AI agents. Enclave checks AgentScript, the subset of JavaScript a model writes to call your tools, rewrites it so that limits can be enforced, and runs it where it reaches only the globals and tools you give it, with limits on time, iterations, tool calls and memory. Packages cover Node.js, the browser (nested sandboxed iframes), and a streaming layer that runs scripts behind HTTP routes, with a client and React hooks.
npm install @enclave-vm/coreA lightweight in-memory vector database for semantic search in TypeScript. Embeddings run locally with transformers.js, so your data stays on your server and there is no API quota. HNSW indexing, typed metadata filters, file and Redis persistence, and a zero-dependency TF-IDF mode.
npm install vectoriadbFrontMCP builds on the libraries: its OpenAPI adapter (@frontmcp/adapters) runs on mcp-from-openapi, and its CodeCall plugin (@frontmcp/plugin-codecall) finds tools with VectoriaDB and runs the scripts a model writes in Enclave. Each library is also a standalone npm package that works without FrontMCP.
- Building an MCP server? Follow Learn FrontMCP, or try it first in the playground.
- Have an OpenAPI spec? Read Getting Started with mcp-from-openapi.
- Running code a model wrote? Start with the Enclave docs.
- Need search over tools or documents? Start with the VectoriaDB docs.
Issues and pull requests are welcome in every repository. Read the repository's contributing guide first, for example FrontMCP's or mcp-from-openapi's. Report vulnerabilities privately, as the repository's SECURITY.md describes or by email to info@agentfront.dev, never in a public issue. For questions and ideas, join the Discord.
If one of these projects saves you time, a star helps other developers find it.
agentfront.dev · frontmcp.dev · docs.agentfront.dev · Discord · david@frontegg.com