Convert any application into an MCP server — with AI assistance. CLI + Claude Desktop plugin.
Project description
🔨 MCP Forge
Convert any application into an MCP (Model Context Protocol) server — with AI assistance.
MCP Forge is a self-hosted AI agent that analyzes your existing app (via OpenAPI spec, GitHub repo, live URL, or local code) and generates a production-ready MCP server that Claude Desktop, Claude Code, or any MCP client can use directly.
✨ Features
| Category | Highlights |
|---|---|
| Source ingestion | OpenAPI/Swagger URL · GitHub repo · Live URL probing · Local folder (mnt/) · File upload · Manual description |
| AI agent | Multi-LLM (Gemini · Anthropic · OpenAI · local HuggingFace) · per-project chat · clarification Q&A loop |
| Code generation | Python FastMCP · Node.js (in testing) · Go (in testing) · Generic (in testing)· LLM polish pass · security audit |
| Versioning | Snapshot on every generation · one-click rollback · optional git commits |
| Testing | AI-generated pytest cases · in-container runner · full test history |
| Dashboard | Real-time logs · 6-tab project view · editable .env config from the browser |
| Integrations | Claude Desktop · Claude Code · Codex · forge CLI |
🗺️ Two Ways to Use MCP Forge
| Method | Best for |
|---|---|
| Web Dashboard | Visual workflow — point & click, no code |
forge CLI + Claude Desktop |
AI-driven workflow from your terminal or Claude chat |
Both require MCP Forge running in Docker first — see Step 1 below.
Step 1 — Run MCP Forge (Docker)
Required for everything — the dashboard, CLI, and Claude Desktop all connect to this Docker instance.
Prerequisites
- Docker Desktop installed and running
- At least one LLM API key or an NVIDIA GPU for local mode
1.1 — Clone & configure
git clone https://github.com/coderXcode/mcp-forge.git
cd mcp-forge
cp .env.example .env
Open .env and set at minimum:
LLM_PROVIDER=gemini # or: anthropic | openai | local
GEMINI_API_KEY=your-key-here
# This token authenticates the CLI and Claude Desktop — change it to something secret
MCP_AUTH_TOKEN=change-me-to-something-secret
Free option: Gemini has a free tier at aistudio.google.com — no credit card needed.
1.2 — Start
docker compose up -d
| Service | URL | Purpose |
|---|---|---|
| 🌐 Dashboard | http://localhost:8000 | Web UI — full visual workflow |
| 🔌 MCP endpoint | http://localhost:8001/sse | Used by Claude Desktop / Claude Code |
1.3 — Verify it's running
# Should return [] (empty list — that's fine)
curl http://localhost:8000/api/projects/
✅ MCP Forge is now online. Keep Docker running whenever you use the CLI or Claude Desktop.
Step 2A — Use the Web Dashboard
Visit http://localhost:8000 → click + New Project → follow the UI.
No further setup needed.
Step 2B — Use the forge CLI
Install
pip install mcp-forger
# or: pipx install mcp-forger (isolated, recommended)
Connect the CLI to your running MCP Forge instance
Do this once — it saves your connection details locally.
forge connect --url http://localhost:8000 --token YOUR_MCP_AUTH_TOKEN
Get your token with:
docker exec mcp_forge_app printenv MCP_AUTH_TOKEN
Verify
forge status
# Should list your projects (empty at first — that's fine)
Create and convert your first project
# From an OpenAPI/Swagger spec URL
forge analyze 1 # after creating via dashboard or --source-url flag
# Check what's happening
forge logs 1 --tail 20
# Generate the MCP server
forge generate 1 --lang python_fastmcp
# Run AI-generated tests
forge test 1
# Chat with the AI agent
forge chat 1 "review all endpoints and ask me anything unclear"
Install the Claude Desktop plugin (one command)
forge plugin install
# Then fully quit + reopen Claude Desktop
This writes claude_desktop_config.json automatically — no manual editing.
All CLI commands
forge connect --url <url> --token <token> # save connection (run once)
forge status # list all projects
forge analyze <project_id> # trigger analysis
forge generate <project_id> --lang <lang> # generate MCP server
forge chat <project_id> "<message>" # chat with AI agent
forge logs <project_id> --tail 50 # stream live logs
forge test <project_id> # run AI-generated tests
forge plugin install # write claude_desktop_config.json
forge plugin status # verify Claude Desktop config
Step 2C — Use Claude Desktop
Claude Desktop lets you control MCP Forge entirely through natural language.
Install the plugin
Windows (PowerShell):
.\scripts\install_claude_plugin.ps1
macOS / Linux:
bash scripts/install_claude_plugin.sh
Or if you have the CLI installed:
forge plugin install
Then fully quit and reopen Claude Desktop (right-click system tray → Quit).
Go to Settings → Developer — you should see mcp-forge with a 🟢 green dot.
Example prompts
Create a new MCP Forge project called "petstore" from
https://petstore3.swagger.io/api/v3/openapi.json
Generate the MCP server for project 1 in Python FastMCP
Run tests for project 1 and show me the results
Chat with the forge agent for project 1:
"Add rate limiting to all tools"
Step 2D — Use Claude Code
/plugin marketplace add coderXcode/mcp-forge
/plugin install mcp-forge@coderXcode-mcp-forge
Skills available:
/forge:analyze <project_id>
/forge:generate <project_id>
/forge:chat <project_id> <message>
/forge:status
/forge:test <project_id>
/forge:rollback <project_id> <version>
🖥️ Local Model (No API Key)
Run entirely offline with any HuggingFace model — no API key needed. Requires NVIDIA GPU.
LLM_PROVIDER=local
LOCAL_MODEL=Qwen/Qwen2.5-Coder-14B-Instruct # swap for any HuggingFace model
LOCAL_MODEL_DEVICE=auto
LOCAL_MODEL_LOAD_IN_4BIT=true
docker compose down && docker compose build && docker compose up -d
| Model | VRAM (4-bit) | Notes |
|---|---|---|
Qwen/Qwen2.5-Coder-7B-Instruct |
~4 GB | Lightest |
Qwen/Qwen2.5-Coder-14B-Instruct |
~8 GB | Recommended |
deepseek-ai/deepseek-coder-v2-lite-instruct |
~8 GB | Strong alternative |
Qwen/Qwen2.5-Coder-32B-Instruct |
~18 GB | Best quality |
mistralai/Mistral-7B-Instruct-v0.3 |
~4 GB | General purpose |
CPU-only (no GPU): set
LOCAL_MODEL_LOAD_IN_4BIT=falseandLOCAL_MODEL_DEVICE=cpu— much slower but works.
⚙️ Key Configuration
All settings live in .env — also editable live from the dashboard Config page.
| Variable | Default | Description |
|---|---|---|
LLM_PROVIDER |
gemini |
gemini | anthropic | openai | local |
GEMINI_API_KEY |
— | Google Gemini API key |
ANTHROPIC_API_KEY |
— | Anthropic Claude API key |
OPENAI_API_KEY |
— | OpenAI API key |
MCP_AUTH_TOKEN |
change-me |
Auth token for CLI / Claude — change this |
GITHUB_TOKEN |
— | PAT for private GitHub repos |
LOCAL_MODEL |
Qwen/Qwen2.5-Coder-14B-Instruct |
Any HuggingFace model ID |
ENABLE_GIT_SNAPSHOTS |
false |
Auto-commit each snapshot to git |
DEBUG |
false |
Verbose logs + uvicorn reload |
🐳 Useful Docker Commands
docker compose up -d # start
docker compose up -d --build # rebuild after code changes
docker compose restart # restart after .env changes
docker compose down -v # stop + wipe database
docker logs mcp_forge_app -f # app logs
docker logs mcp_forge_mcp -f # MCP server logs
🔧 Troubleshooting
mcp-forge not showing in Claude Desktop (red dot / missing)
- Fully quit Claude Desktop (system tray → Quit, not just close)
- Re-run:
forge plugin installor.\scripts\install_claude_plugin.ps1 - Validate JSON at jsonlint.com
"Connection refused" on port 8000 or 8001
docker ps # check containers are running
docker compose up -d # start if not running
docker logs mcp_forge_app --tail 30
Wrong / expired auth token
docker exec mcp_forge_app printenv MCP_AUTH_TOKEN
forge connect --url http://localhost:8000 --token <new-token>
forge plugin install # updates claude_desktop_config.json too
Reset the database
echo y | docker exec -i mcp_forge_app python clear_db.py
📖 Full Documentation
See user_manual.md for advanced configuration, Codex integration, local folder setup, architecture details, and more.
📝 License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_forger-1.0.1.tar.gz.
File metadata
- Download URL: mcp_forger-1.0.1.tar.gz
- Upload date:
- Size: 327.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e88955ec0f991e90016b6a50746bcee28ff5d7ca52d4e17832f37acf79f30983
|
|
| MD5 |
e65ea0f98b7ed6582ada6810ea60ee36
|
|
| BLAKE2b-256 |
70a42db9866a7415f216ecaeeb40d5783ee3af3486c6244cc664f00ff3e79cb7
|
File details
Details for the file mcp_forger-1.0.1-py3-none-any.whl.
File metadata
- Download URL: mcp_forger-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a82056099a7fc3a4b02a4e96ad01576a46952ede0182017765a15e24e8a2576
|
|
| MD5 |
0fa4ef693b942948f4f3177be32eaa8b
|
|
| BLAKE2b-256 |
777a751ff6a1be246f0392cae25b443d5ed066b418a817419920a9f10d502619
|