# FrontMCP MCP server

> Builds TypeScript MCP servers with typed tools, dependency injection, authentication, testing and deployment to Node, Vercel, Lambda or Workers.

- Repository: https://github.com/agentfront/frontmcp
- Page: https://hostedmcp.org/servers/agentfront/frontmcp
- Transport: stdio
- Stars: 152
- License: Apache-2.0

## Install

### Claude Code

```sh
claude mcp add frontmcp -- npx -y @frontmcp/adapters
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "frontmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@frontmcp/adapters"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "frontmcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@frontmcp/adapters"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"frontmcp","type":"stdio","command":"npx","args":["-y","@frontmcp/adapters"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "frontmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@frontmcp/adapters"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add frontmcp -- npx -y @frontmcp/adapters
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.frontmcp]
command = "npx"
args = ["-y", "@frontmcp/adapters"]
```

### Gemini CLI

```sh
gemini mcp add -s user frontmcp npx -- -y @frontmcp/adapters
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "frontmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@frontmcp/adapters"
      ]
    }
  }
}
```

## FAQ

### What is FrontMCP?

FrontMCP is a TypeScript framework for building MCP servers. You define tools, resources and prompts as typed classes with Zod schemas, and FrontMCP serves them over the Model Context Protocol.

### How do I create a new FrontMCP project?

Run npx frontmcp create my-app to scaffold a new project, or npx frontmcp init to add FrontMCP to an existing one. It requires Node 24 or later.

### Where can I deploy a FrontMCP server?

The same server runs on Node.js, Vercel, AWS Lambda and Cloudflare Workers. An edge package supports Cloudflare Workers and V8 isolates.

### Does FrontMCP support authentication?

Yes. The @frontmcp/auth package provides OAuth, JWKS, DCR/CIMD, sessions and a credential vault.

### Can I test a FrontMCP server?

Yes, @frontmcp/testing provides an end-to-end test framework with fixtures and matchers, and the CLI includes a test command.
