MCP-Forge
Scaffold, extend, install, and distribute MCP servers in seconds.
Generated servers target the official mcp Python SDK 2.x
(MCPServer) and the 2026-07-28 protocol revision, and stay compatible with handshake-era clients.
Install
mcp-forge is not on PyPI. The mcp-forge package there is an unrelated project, so install from GitHub:
uv tool install git+https://github.com/iddv/mcp-forge
or
pipx install git+https://github.com/iddv/mcp-forge
Quick Start
# Scaffold a new MCP server project
mcp-forge new my-server
cd my-server
# Add features
mcp-forge add resources prompts annotations
# Package as a Claude Code plugin (with an Agent Skill)
mcp-forge add plugin
# Register in your MCP clients
mcp-forge install
Commands
mcp-forge new <name>
Create a new MCP server project (MCPServer) with working tests, dependencies, and a ready-to-run example tool.
mcp-forge new my-server
cd my-server
# Install, then run with the MCP Inspector
pip install -e ".[test]"
mcp dev server.py
# Run tests (in-process MCP client, no subprocess)
pytest
mcp-forge add <feature>
Add MCP capabilities to an existing project. Pass one or more features. Adding a feature that
is already present does nothing, and features pull in what they depend on (e.g. auth adds http).
mcp-forge add resources completions # Several at once
mcp-forge add auth # Also adds http
mcp-forge features # List everything available
mcp-forge install
Register your server in MCP client applications. Auto-detects installed clients or targets a specific one.
# Auto-detect and install in all found clients
mcp-forge install
# Target a specific client
mcp-forge install --client claude
mcp-forge install --client cursor
mcp-forge install --client vscode
# See what would be written, without changing any file
mcp-forge install --dry-run
The entry runs the server with the project's own dependencies: uv run --directory <project> python server.py
when uv is installed, otherwise the project's .venv Python.
Auto-detect picks global clients whose config directory exists. Project-level clients (VS Code, Kiro,
JetBrains) are picked only when the project already has their folder, and Claude Code when ~/.claude
exists. Use --client to add one anyway.
A config file that isn't plain JSON (Zed's settings.json often has comments) is left untouched: the
other clients are still updated, and mcp-forge prints the entry to add by hand. Existing files are
backed up to <file>.bak before they change.
Supported Clients
| Client | Config Location | Scope |
|---|
| Claude Desktop | Platform-specific | Global |
| Cursor | ~/.cursor/mcp.json | Global |
| Windsurf | ~/.codeium/windsurf/mcp_config.json | Global |
| VS Code | .vscode/mcp.json | Project |
| Kiro | .kiro/settings/mcp.json | Project |
| Zed | ~/.config/zed/settings.json | Global |
| JetBrains | .junie/mcp.json | Project |
| Claude Code | .mcp.json | Project |
| Continue | ~/.continue/config.json | Global |
| Cline | ~/Documents/Cline/mcp_settings.json | Global |
| Roo Code | ~/.roo-code/mcp.json | Global |
| Amazon Q | ~/.aws/amazonq/mcp.json | Global |
Available Features
Protocol features