# MCP Framework MCP server

> A TypeScript framework for building Model Context Protocol servers with automatic tool discovery and built-in schema validation.

- Repository: https://github.com/QuantGeekDev/mcp-framework
- Page: https://hostedmcp.org/servers/quantgeekdev/mcp-framework
- Transport: stdio
- Stars: 931
- License: MIT

## Install

### Claude Code

```sh
claude mcp add mcp-framework -- npx -y mcp-framework
```

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

```json
{
  "mcpServers": {
    "mcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-framework"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-framework": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-framework"
      ]
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "mcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-framework"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-framework -- npx -y mcp-framework
```

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

```toml
[mcp_servers.mcp-framework]
command = "npx"
args = ["-y", "mcp-framework"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-framework npx -- -y mcp-framework
```

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

```json
{
  "mcpServers": {
    "mcp-framework": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-framework"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MCP_DEBUG_CONSOLE` | no | no |  |
| `MCP_ENABLE_FILE_LOGGING` | no | no |  |
| `MCP_SKIP_TOOL_VALIDATION` | no | no |  |
| `NODE_ENV` | no | no |  |
| `OAUTH_AUDIENCE` | no | no |  |
| `OAUTH_AUTHORIZATION_SERVER` | no | no |  |
| `OAUTH_CLIENT_ID` | no | no |  |
| `OAUTH_CLIENT_SECRET` | no | no |  |
| `OAUTH_INTROSPECTION_ENDPOINT` | no | no |  |
| `OAUTH_ISSUER` | no | no |  |
| `OAUTH_JWKS_URI` | no | no |  |
| `OAUTH_RESOURCE` | no | no |  |

## Tools (3)

- `search_docs`
- `get_page`
- `list_sections`

## FAQ

### How do I start a new MCP server project?

You can use the framework's CLI by running `npm install -g mcp-framework` and then executing `mcp create <your project name>`.

### What transport protocols are supported?

The framework supports multiple transport methods including stdio, SSE, and HTTP Stream.

### Does the framework validate tool schemas?

Yes, it provides automatic validation during the build process and standalone validation via the `mcp validate` command to ensure all fields have descriptions.

### Can I use HTTP instead of stdio?

Yes, you can create a project using the experimental HTTP transport by using the `--http` flag with the create command.
