vulcai-mcp-forge-cli
Turn any system into a production-ready MCP server — APIs, legacy codebases, CLI tools, internal docs.
pip install vulcai-mcp-forge-cli
mcp-forge run https://petstore3.swagger.io/api/v3/openapi.json
Why mcp-forge:
- 23 languages including COBOL, Fortran, R, Julia — the only generator that works on real legacy codebases
- Built-in quality scoring — every generated server is automatically evaluated on 6 criteria (structure, coverage, auth, docs, fidelity, robustness) with a 0–10 score
- Security-first — the CLI runs on your machine; your source code and credentials never leave your infrastructure
- Agents included — the public MCP server at
mcp.mcp-forge.vulcai.ioexposes high-level tools so AI agents can generate servers without any pre-parsing
Use directly with AI agents
Connect Claude, Cursor or any MCP client to the mcp-forge public server:
https://mcp.mcp-forge.vulcai.io/mcp
Streamable HTTP; the license key goes in the Authorization: Bearer header (never in the URL).
Available tools (no pre-parsing required — just pass a URL):
| Tool | What it does |
|---|---|
generate_from_openapi(spec_url) |
Parse an OpenAPI/Swagger spec and generate a server |
generate_from_graphql(endpoint_url) |
Introspect a GraphQL endpoint and generate a server |
generate_from_website(url) |
Analyze HTML/JS patterns on a page and generate a server |
generate_async(source_type, base_url) |
Advanced: submit a job with a pre-built payload |
get_job_status(job_id) |
Check status of a running generation |
For codebase analysis, CLI tool wrapping, or any source not publicly accessible via HTTPS, use the CLI tool — source code and credentials stay on your machine.
How it compares
mcp-forge focuses on production-grade MCP servers for legacy and enterprise use cases. Here's how it compares to other MCP generators:
| Feature | mcp-forge | FastMCP | Smithery | openapi-mcp-generator |
|---|---|---|---|---|
| OpenAPI → MCP | ✅ | ✅ | ✅ | ✅ |
| GraphQL → MCP | ✅ | ❌ | Partial | ❌ |
| Codebase → MCP (23 languages incl. COBOL, Fortran) | ✅ | ❌ | ❌ | ❌ |
| CLI tool → MCP (via local CLI) | ✅ | ❌ | ❌ | ❌ |
| Website → MCP | ✅ | ❌ | ❌ | ❌ |
| Automatic quality scoring (0–10 on 6 criteria) | ✅ | ❌ | ❌ | ❌ |
| OAuth 2.0 with PKCE in generated servers | ✅ | ❌ | ❌ | ❌ |
| Rate limiting in generated servers | ✅ | ❌ | ❌ | ❌ |
| Async job pattern for long generations | ✅ | ❌ | ❌ | ❌ |
| On-premise deployment | ✅ | N/A | ❌ | N/A |
| Source code stays on user's machine (via CLI) | ✅ | N/A | ❌ | ✅ |
| License model | Freemium + commercial | MIT | Freemium | MIT |
| CLI open source | ✅ (MIT) | ✅ | N/A | ✅ |
| Backend open source | ❌ | ✅ | ❌ | ✅ |
If you're wrapping a simple public OpenAPI and want a minimal dependency, FastMCP or openapi-mcp-generator may be a better fit. If you need multi-language codebase support, quality scoring, OAuth, or on-premise deployment, mcp-forge is designed for that.
What it does
mcp-forge analyses your source, extracts all callable operations, optionally enriches them with an LLM, and writes a fully working MCP server (server.py + requirements.txt) ready to plug into Claude Desktop, Claude Code, Cursor, VS Code or any MCP-compatible client.
Every generated server includes OAuth 2.0 (Authorization Code + PKCE), rate limiting, multi-tenant token isolation, and the Streamable HTTP transport on /mcp — out of the box.
Every generated server is automatically evaluated on 6 quality criteria, with a 0–10 score and a detailed report. The evaluation runs after generation: mcp-forge run waits for it, then writes the final version.
Automatic quality evaluation
Every generated server is scored by an LLM on 6 criteria once it has been generated:
| Criterion | What is checked |
|---|---|
| Code structure | Readability, organisation, FastMCP idioms |
| Endpoint coverage | All tools present and correctly mapped |
| Auth & security | Env vars, headers, no hardcoded secrets |
| Description quality | Docstrings, tool names, argument documentation |
| Spec fidelity | Types, body vs query params, path parameters |
| Robustness | Timeout handling, error handling, default values |
Each criterion is scored 0–10. Besides the model's judgement, the evaluator runs mechanical checks (compilation, undefined names, isolated import, verification of each reported bug) and tests the server's HTTP layer.
The evaluation runs after generation. mcp-forge run receives the server first, waits for the evaluation with a progress display, then writes the final version and prints the score. When the evaluation leads to a refinement, the final version is the refined server.
Don't want to wait? Stop at the provisional version and fetch the final one later:
mcp-forge run https://petstore3.swagger.io/api/v3/openapi.json --no-wait # prints a generation id
mcp-forge status <generation_id> --output mcp-forge-output/petstore # waits, then writes the final version
mcp-forge status <generation_id> --no-wait # current state only
Run the evaluator manually on any server:
mcp-forge evaluate output/my_server/server.py
Supported sources
| Source | Auto-detected when | Example |
|---|---|---|
| OpenAPI / Swagger | URL or file ending in .json, .yaml, .yml |
mcp-forge run https://api.example.com/openapi.json |
| GraphQL | URL contains graphql or ends with /graphql, or a schema file .graphql · .gql · .graphqls · .sdl |
mcp-forge run https://api.example.com/graphql |
| Codebase | Local directory path | mcp-forge run ./my-project |
| CLI application | Command name (no slashes, no http) | mcp-forge run git |
| Website | http:// or https:// URL without spec extension |
mcp-forge run https://example.com |
Website discovery reads one page, the URL you give: its HTML forms, its links to other pages of the same site and the API calls spotted in its scripts. Links that differ by one segment (
/catalogue/{slug}/index.html) become one tool with a parameter, and a page gives at most 30 tools. It also uses an OpenAPI spec if the site publishes one at a usual path (/openapi.json,/swagger.json…) or links to one from that page, and a Swagger UI or Redoc page gives the tools of the spec it shows (mcp-forge run https://petstore3.swagger.io). It does not follow links to further pages and does not log in, so a site often gives only a few tools. When the site has an API described by an OpenAPI spec or a GraphQL schema, generate the server from that instead: one tool per operation.
Supported languages for codebase analysis: Python, JavaScript, TypeScript, Go, Rust, Java, C/C++, C#, PHP, Ruby, Kotlin, Swift, Scala, Dart, Elixir, R, Fortran, Bash, PowerShell, Groovy, Julia, Lua, COBOL.
Codebases need CLI 0.4.0 or later. Older versions are refused with HTTP 426 and a message asking you to upgrade (
pip install -U vulcai-mcp-forge-cli). No quota is consumed. The other sources work with any version.
COBOL note: mcp-forge executes modern, isolated COBOL subprograms — a
PROGRAM-IDwith an explicitPROCEDURE DIVISION USING <inputs...> <output>.clause, which genuinely has isolated parameters and an output (fixed/free source format doesn't matter, only the program structure does). Legacy monolithic COBOL — a singlePROCEDURE DIVISIONof paragraphs sharing globalWORKING-STORAGEstate, with no isolation — is detected but returns an explicit error rather than a guessed result: there is no reliable way to isolate one paragraph's inputs/outputs from shared mutable state without risking a silently wrong answer.
Installation
Requirements: Python 3.11.5+ · Node.js 18+ · uv
pip install vulcai-mcp-forge-cli
Install uv (used to run generated servers):
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
Website scraping support (JS-heavy pages / SPAs — requires Playwright):
pip install "vulcai-mcp-forge-cli[web]"
playwright install chromium
License key
Get your license key at mcp-forge.vulcai.io then register it once in your project directory:
mcp-forge set-license mfg_live_...
This saves the key to a .env file and it will be picked up automatically on every mcp-forge run call.
Quick start
# OpenAPI from URL
mcp-forge run https://petstore3.swagger.io/api/v3/openapi.json
# GraphQL
mcp-forge run https://countries.trevorblades.com/graphql
# GraphQL endpoint that needs a token to read its schema (used for introspection only)
mcp-forge run https://api.example.com/graphql --header "Authorization: Bearer $API_TOKEN"
# GraphQL schema file (the server reads the endpoint URL from GRAPHQL_ENDPOINT)
mcp-forge run ./schema.graphql
# Local codebase
mcp-forge run ./my-python-project
# CLI tool
mcp-forge run git
# Website
mcp-forge run https://docs.example.com
# Custom output and server name
mcp-forge run https://api.example.com/openapi.json --output ~/mcp-servers --name my_api
The generated server is written to mcp-forge-output/<server_name>/ by default.
CLI reference
mcp-forge run <source>
| Option | Values | Description |
|---|---|---|
--mode, -m |
auto · semi · guided |
Generation mode — auto runs silently, semi prompts on ambiguity, guided is fully interactive |
--type, -t |
openapi · graphql · codebase · cli_app · website |
Force source type instead of auto-detect |
--output, -o |
<path> |
Output directory (default: mcp-forge-output/) |
--name, -n |
<string> |
Override the generated server name |
--name-style, -ns |
short · exhaustive |
Tool naming style |
--api-key |
<string> |
Anthropic API key (overrides ANTHROPIC_API_KEY) |
--local |
flag | Force local pipeline — no call to the Vulcai API |
--no-llm |
flag | No LLM call at all: no enrichment, no LLM evaluation (mechanical checks only, no score) |
--config, -c |
<file.yaml> |
Load options from a YAML config file (default: mcp-forge.yaml if present) |
--smoke-test |
flag | Run a smoke test automatically after generation |
--functional-test |
flag | Start the server and run a full MCP functional test after generation |
--no-wait |
flag | Remote pipeline: write the provisional version without waiting for the evaluation (fetch the final one with mcp-forge status) |
--include-tags · --exclude-tags |
<tag,tag> |
OpenAPI: only generate (or leave out) the operations with these tags — see Large APIs |
--include-paths · --exclude-paths |
</prefix,…> |
OpenAPI: only generate (or leave out) the paths that start with these prefixes (/repos matches /repos/{owner}, not /repository) |
--no-output-schema |
flag | No output schema in the generated tools: a shorter tool list for the client LLM |
--header, -H |
"Name: value" |
GraphQL: HTTP header used to read the schema (repeatable), e.g. --header "Authorization: Bearer $API_TOKEN". The value is never written to the generated server nor sent to the Vulcai API; the server takes the credentials from its environment (BEARER_TOKEN, BASIC_AUTH, or the key header's variable) |
GraphQL from a schema file. A .graphql, .gql, .graphqls or .sdl file is read locally
and gives the same tools as the endpoint's introspection. The generated server has no endpoint of
its own: set GRAPHQL_ENDPOINT to its URL when you run it (the variable also overrides the URL of
a server generated from an endpoint).
mcp-forge status <generation_id>
Show the evaluation state of a remote generation, wait for the final version and, with --output, write it to that directory.
| Option | Description |
|---|---|
--output, -o <path> |
Directory where the final version is written |
--no-wait |
Print the current state without waiting for the evaluation to finish |
mcp-forge status <generation_id> --output mcp-forge-output/my_api
mcp-forge set-license <key>
Save your license key to .env in the current directory.
mcp-forge set-license mfg_live_abc123...
mcp-forge test <server.py>
Launch MCP Inspector on a generated server. Opens in your browser. Accepts Windows backslash paths.
mcp-forge test output/my_server/server.py
mcp-forge smoke-test <server_dir>
Validate a generated server without starting it. Checks: server.py present, Python syntax valid, importable, mcp object present, at least 1 @mcp.tool registered, VERSION file consistency.
mcp-forge smoke-test output/my_server
mcp-forge functional-test <server_dir>
Start the server and communicate with it via JSON-RPC / stdio — exactly like a real MCP client. Verifies: server starts, MCP handshake succeeds, tools/list returns ≥1 tool, count matches VERSION file.
| Option | Description |
|---|---|
--timeout, -t |
Max wait time per phase in seconds (default: 15) |
mcp-forge functional-test output/my_server --timeout 30
mcp-forge evaluate <server.py>
Evaluate the quality of a generated server using LLM analysis. Produces a detailed quality report.
| Option | Description |
|---|---|
--context, -C <string> |
Additional context — source spec, use case, expected behaviour |
--json |
Output raw JSON (useful for CI/CD pipelines) |
--save, -s <file.json> |
Save the JSON report to a file |
--api-key <string> |
Anthropic API key (overrides ANTHROPIC_API_KEY) |
mcp-forge evaluate output/my_server/server.py --context "Petstore API" --save report.json
mcp-forge list
List all generated MCP servers in the output directory. Displays name, generation date, source and tool count.
| Option | Description |
|---|---|
--output, -o <path> |
Directory to inspect (default: mcp-forge-output/) |
mcp-forge list
mcp-forge info
Display version info, supported source types and current configuration.
mcp-forge --version
Print the installed version and exit.
Generation modes
| Mode | Description |
|---|---|
auto |
Fully automatic — no prompts |
semi |
Pauses on ambiguity, interactive where needed |
guided |
Step-by-step with full control over every tool |
LLM enrichment
By default, mcp-forge calls the Vulcai API to enrich tool names and descriptions using Claude. Set your license key with mcp-forge set-license — no Anthropic key needed in cloud mode.
To run fully locally (requires [engine] extras — not publicly distributed):
mcp-forge run https://api.example.com/openapi.json --local
To make no LLM call at all (no enrichment, no LLM evaluation; the report lists the mechanical checks only):
mcp-forge run https://api.example.com/openapi.json --no-llm
Large APIs: generate less, use better
An MCP client sends the full list of tools (names, descriptions, parameters, output schemas) to the LLM with every message. A long list:
- leaves less room for the conversation and for tool results;
- makes the LLM worse at picking the right tool, even with today's large context windows: choosing among hundreds of similar tools is harder;
- makes every message cost more for the user, since the list is billed each time;
- can go over the limit of clients that only accept a set number of tools.
So for a large API, generate only the operations your agent needs. mcp-forge warns you when the generated server has more than 100 tools or a tool list estimated at more than 50k tokens, and USAGE.md gives the measured size of every generated server.
# GitHub's REST API has more than 1,200 operations: keep the issue tools only
mcp-forge run https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json \
--include-tags issues --no-output-schema
Measured on GitHub's spec: without a filter, 1,000 tools and a tool list of about 590k tokens; with --include-tags issues, 66 tools and about 41k tokens (34k with --no-output-schema).
--include-tags/--exclude-tags: operations by OpenAPI tag (comma-separated, case-insensitive).--include-paths/--exclude-paths: operations by path prefix.--no-output-schema: drop the output schemas; responses are unchanged, only their description leaves the tool list.
An exclusion always wins over an inclusion. Without a filter, at most 1,000 operations are generated (the first ones in the spec), and USAGE.md lists what was left out. An operation with more than 50 parameters keeps its required ones and takes the optional ones in a single options object, whose schema lists each accepted name. The same settings exist in mcp-forge.yaml and in the API.
Configuration file
Create mcp-forge.yaml in your project root:
source: https://api.example.com/openapi.json
mode: auto
output: ../mcp-servers
name: my-api-server
name_style: short
no_llm: false
functional_test: true
# Guidance for the client LLM (optional)
instructions: Dates use ISO 8601. Prices are in cents.
tool_instructions:
getPetById: Call findPetsByStatus first to get a valid id.
# Large APIs (optional): operations to generate, output schemas
include_tags: [pet, store]
exclude_paths: [/store/inventory]
no_output_schema: false
instructions is sent to the client when it connects (MCP instructions);
each tool_instructions entry is added to that tool's description, keyed by
the tool's MCP name. On the command line: --instructions TEXT and
--tool-instruction NAME=TEXT (repeatable). Invisible characters are
removed, and the evaluator reports text that tries to steer the LLM against
the user (OWASP MCP03).
CLI flags always override the config file. Use a custom path with --config path/to/config.yaml.
Environment variables
| Variable | Description |
|---|---|
FORGE_LICENSE_KEY |
Your mcp-forge license key. Set automatically by mcp-forge set-license. |
FORGE_API_URL |
Override the Vulcai API endpoint — useful for on-premise deployments. |
FORGE_MODE |
Set to local to always use the local pipeline. |
ANTHROPIC_API_KEY |
Anthropic API key — only needed when running the local pipeline with LLM enrichment. |
Connecting to AI clients
Every client below starts the server over stdio with uv, using the versions pinned in the server's requirements.txt. mcp run serves the server's FastMCP object over stdio (python server.py starts the HTTP server instead). Replace the path with the absolute path of your server directory.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"my_api": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/mcp-forge-output/my_api", "run", "--no-project", "--with-requirements", "requirements.txt", "--with", "mcp[cli]", "mcp", "run", "server.py"]
}
}
}
Restart Claude Desktop — your tools appear automatically.
Claude Code (CLI)
claude mcp add my_api -- uv --directory /absolute/path/to/mcp-forge-output/my_api \
run --no-project --with-requirements requirements.txt --with "mcp[cli]" mcp run server.py
Cursor
Open Settings › MCP › Add new global MCP server:
{
"my_api": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/mcp-forge-output/my_api", "run", "--no-project", "--with-requirements", "requirements.txt", "--with", "mcp[cli]", "mcp", "run", "server.py"]
}
}
VS Code (Copilot / Continue)
In .vscode/mcp.json:
{
"servers": {
"my_api": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "/absolute/path/to/mcp-forge-output/my_api", "run", "--no-project", "--with-requirements", "requirements.txt", "--with", "mcp[cli]", "mcp", "run", "server.py"]
}
}
}
Windsurf
Open Settings › Cascade › MCP servers › Add Server:
{
"my_api": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/mcp-forge-output/my_api", "run", "--no-project", "--with-requirements", "requirements.txt", "--with", "mcp[cli]", "mcp", "run", "server.py"]
}
}
Generic (any MCP-compatible client)
All clients implementing the MCP spec accept a STDIO transport:
command : uv
args : --directory /absolute/path/to/mcp-forge-output/<server_name>
run --no-project --with-requirements requirements.txt --with mcp[cli] mcp run server.py
env : { "MY_API_KEY": "..." } ← optional, for authenticated APIs
Authenticated APIs: if your API requires credentials, set them in the
envblock. The generatedserver.pyreads credentials from environment variables — no secrets are hardcoded.
CI/CD integration
In auto mode (the default), mcp-forge run writes one JSON line on stdout and nothing else (since 0.4.1); progress, the evaluation report and error messages go to stderr. The exit code is 0 on success and non-zero when the generation, or a test you asked for (--smoke-test, --functional-test), fails.
{"success": true, "server_name": "my_api", "output_dir": "mcp-forge-output/my_api", "tools_count": 19, "files": ["server.py", "..."], "errors": []}
On failure, the line is {"success": false, "errors": [...]}, even when the command stops before the generation (invalid option, missing configuration file). mcp-forge evaluate --json follows the same rule: the report on one line, alone on stdout.
Store your license key as a secret of your CI and pass it as FORGE_LICENSE_KEY (no mcp-forge set-license needed). Use --no-llm for a generation without any LLM call.
GitHub Actions
- name: Generate MCP server
env:
FORGE_LICENSE_KEY: ${{ secrets.FORGE_LICENSE_KEY }}
run: |
pip install vulcai-mcp-forge-cli
result=$(mcp-forge run https://api.example.com/openapi.json --name my_api --smoke-test)
echo "$result" | python -c "import json, sys; r = json.load(sys.stdin); print(r['tools_count'], 'tools in', r['output_dir'])"
GitLab CI
generate-mcp:
image: python:3.12-slim
script:
- pip install vulcai-mcp-forge-cli
- mcp-forge run https://api.example.com/openapi.json --name my_api --smoke-test > result.json
artifacts:
paths: [result.json, mcp-forge-output/]
FORGE_LICENSE_KEY is a masked CI/CD variable of the project.
Jenkins
withCredentials([string(credentialsId: 'forge-license-key', variable: 'FORGE_LICENSE_KEY')]) {
sh 'pip install vulcai-mcp-forge-cli'
sh 'mcp-forge run https://api.example.com/openapi.json --name my_api --smoke-test > result.json'
}
Security & Compliance
For data retention, LLM access policies, GDPR compliance, and subprocessors, see the Trust & Security page.
License
MIT — see LICENSE.
Metadata
Release files for vulcai-mcp-forge-cli 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vulcai_mcp_forge_cli-0.4.4-py3-none-any.whl | Python 3 | none | any | Details for vulcai_mcp_forge_cli-0.4.4-py3-none-any.whl |
Release files / vulcai_mcp_forge_cli-0.4.4-py3-none-any.whl
| Download URL | vulcai_mcp_forge_cli-0.4.4-py3-none-any.whl |
|---|---|
| Size | 267.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adefa36fb71d5b614da9d10c555bb982d172f0ea6b70d40e6180199d7940aa41
|
|
BLAKE2b-256 checksum How to use checksums |
dfec01360707d778cf8206ef17930c45b17f83f5832079d1a9ac45d9164a0c21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for vulcai-mcp-forge-cli 0.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.