Open source · self-hosted · read-only by default
Your APIs and databases. Agent-ready.
mcp-forge turns HTTP and GraphQL endpoints, SQL queries and NoSQL operations into curated MCP tools for Claude and other agents. You decide which tools exist, what they are called, and exactly what comes back.
One binary with a web UI. macOS, Linux and Windows. MIT or Apache-2.0. No telemetry.
Works with what you already run
- OpenAPI 3
- Swagger 2
- Postman
- HAR
- curl
- GraphQL
- PostgreSQL
- MySQL
- SQL Server
- SQLite
- ClickHouse
- MongoDB
- Redis
- DynamoDB
- Elasticsearch
Agents connect from Claude Code, Claude Desktop, claude.ai connectors and any MCP client, over streamable HTTP or stdio.
The web UI
Every tool in one place, tried before an agent sees it.
Built for
The moment an agent needs real data, and you need control.
-
Support
“What did this customer order?”
Publish one read-only query with a typed customer id. Emails stay masked, results stay under the row limit, and the agent never sees a table you didn't allow.
-
Platform teams
Internal APIs, with a person in the loop
Import the spec, keep the twenty operations that matter, and require approval on anything that changes data. Each client gets its own access key.
-
Data and analytics
Let agents explore, not wander
Turn on list, describe and run-SQL for a warehouse, limited to the tables you name. Every statement is parsed first and runs read-only with a time limit.
Curate, don't dump
One API answer is a hundred fields. Your agent needs three.
Each tool gets a name and a description written for the model, typed parameters, and an optional jq response shape. Agents see the fields that matter, spend fewer tokens, and pick the right tool more often.
- Rename tools, hide parameters, give them fixed values
- Shape responses with jq before the agent sees them
- Re-import when the spec changes; your edits are kept
- Hundreds of operations? Offer
search_toolsandcall_toolinstead
You describe
# connection shop, read onlySELECT id, status, totalFROM ordersWHERE customer_id = :customer_idORDER BY id DESC
The agent sees
recent_orders(customer_id)The latest orders for one customer. → customer_id = 42{"columns": ["id", "status", "total"], "rows": [[1042, "shipped", 59.9]], "truncated": false}
Example: a saved query with a typed parameter. Values never get pasted into the SQL.
Try it
Pick the fields your agent needs.
Here are fifteen of the fields GitHub returns for one repository. Tick the ones to keep: the jq shape writes itself, and the agent gets only what you kept.
Response shape (jq)
{name: .full_name, language, stars: .stargazers_count}The agent gets
{
"name": "rust-lang/rust",
"language": "Rust",
"stars": 122000
}89% smaller · 58 of 547 bytes, about 15 tokens instead of 137
See it in action
Every feature, one short example at a time.
Each feature plays a short example. Pick one to watch it, or let them run in turn.
You describe
# endpoint https://api.github.com/graphqlquery Repo($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { stargazerCount }}
The agent sees
repo(owner, name)→ owner = "rust-lang", name = "rust"{"repository": {"stargazerCount": 122000}}
Each $variable becomes a typed argument. Values travel as GraphQL variables, never pasted into the document. Import a whole schema by introspection if you prefer.
You describe
# MongoDB · shop · read onlyfind orders{"filter": {"customer": "{{customer}}", "status": "{{status}}"}, "limit": 20}
The agent sees
orders_for(customer, status)→ status = {"$ne": null}refused: status takes a string, not an operator
Each {{name}} is a typed argument that fills in a whole value, never an operator or a key. $where never runs, and allowed names, masked fields and row limits apply to every NoSQL tool.
You describe
user_overview(login) 1 get_user {login: .input.login} 2 repos {owner: .steps[0].login} output {name: .steps[0].name, repos: .last | length}
The agent sees
user_overview(login = "ada")→ two requests, one answer{"name": "Ada Lovelace", "repos": 12}
A chain calls other tools of the project in order, with jq between steps. The agent makes one call; the Calls tab shows every step, and a failing step stops the chain.
You write
prompt summarize_user(login, tone)Use user_overview for {{login}} and writea {{tone}} two-line summary. resource style_guide forge://resources/style_guide
In Claude
/summarize_user ada friendly→ Use user_overview for ada and write a friendly two-line summary.
Prompts show up as slash commands; resources as context you can attach. Database schemas and imported specs can be shared as resources too.
Quality tab
get_user 95user_overview 90repos 65 · parameter per_page has no description say the range and default, e.g. "1–100, default 30" Improve with Claude → suggested wording, side by side
Agents pick tools by name and description. The checks run locally; asking Claude for better wording is optional, uses your own key, and changes nothing until you apply it.
An agent calls a tool that needs approval
close_issue(number = 42)⏸ waiting for a person on the Approvals page…✓ approved by ada after 12 s→ the request is sent; the call log records who decided
Tools that change things can wait for a person. Clients that support it show Approve and Decline in their own app; no answer in time refuses the call, and refused calls never reach your API.
Feature packed
Everything between your systems and an agent, in one place.
Guided setup
Every form opens one step at a time, and Next checks the step with the server.
→ Mistakes caught where you make them
Test console
Run a tool with sample arguments and see exactly what an agent will get back.
→ Try it before any agent does
Response shaping
A jq expression trims each answer; null stripping and a size cap are set per project.
→ Fewer tokens, clearer answers
Chained tools
Several tools in order with jq between steps, offered to agents as one tool.
→ One call, one answer
Resources and prompts
Documents and database schemas to read, prompt templates that become slash commands.
→ Context, not just tools
Description quality
A score per tool with a hint for each weak spot, and optional wording from Claude.
→ Agents pick the right tool
Approvals
Calls that change things wait for a person, in the client or on the Approvals page.
→ Nothing happens unseen
Call log
Every call with redacted arguments, timing, client and errors, plus a summary chart.
→ See what agents actually do
Access keys
Per-project keys, limited to some tools, with expiry. App sign-in for claude.ai connectors.
→ Each client on its own key
Packed with more
The numbers
- 6ways to import: OpenAPI, Swagger, Postman, HAR, curl, GraphQL
- 9databases, SQL and NoSQL
- 5independent layers in front of every SQL statement
- 2transports: streamable HTTP and stdio
- 1binary, web UI included
- 0telemetry, and no secrets stored
Get started
From nothing to a working tool in five minutes.
Install
One command on macOS, Linux or Windows, or the Docker image.
Start and sign in
Run
mcp-forge serve, open127.0.0.1:7410, and create your account with the setup code from the log.Add or import tools
Describe a request, import a spec, or connect a database, then try it in the test console.
Connect your agent
Copy a snippet from the Connect tab and ask Claude a question. It calls your tool.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/jaydip187/mcp-forge/releases/latest/download/mcp-forge-installer.sh | sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/jaydip187/mcp-forge/releases/latest/download/mcp-forge-installer.ps1 | iex"
git clone https://github.com/jaydip187/mcp-forge && cd mcp-forge
docker build -t mcp-forge .
docker run -d --name mcp-forge -p 127.0.0.1:7410:7410 -v mcp-forge-data:/data \
-e MCP_FORGE_ADMIN_TOKEN="$(openssl rand -hex 24)" mcp-forge
The installers put mcp-forge in ~/.cargo/bin. Prefer a manual install?
Download an archive from the releases page.
Databases
Read-only until you say otherwise.
Connect PostgreSQL, MySQL, SQL Server, SQLite or ClickHouse. Publish saved queries with typed :name parameters, and optionally let agents list tables, describe them and write their own SELECT statements. Values are always sent separately from the SQL, never pasted into it.
Mask sensitive columns such as users.password_hash or *.email, and limit which tables agents may explore.
MongoDB, Redis, DynamoDB and Elasticsearch connect the same way, with the same access modes, allowed names, masks and limits.
| Access mode | Saved queries | Agent-written SQL |
|---|---|---|
| Read only default | read | read |
| Saved writes | read and write | read |
| Full access | read and write | read and write |
Every write runs in a transaction, is undone if it changes more rows than allowed (100 by default), needs a WHERE clause on UPDATE and DELETE, can be tried with dry_run, and lands in the audit log.
Security
Built to fail closed.
Agents get real access to your systems, so every SQL statement passes through independent layers. Each one is enough on its own to stop a write on a read-only connection.
Database login. Use a login that may only SELECT. The Test button shows what yours can do.
Read-only session. Reads run in a read-only transaction with a server-side time limit, then roll back.
Statement check. SQL is parsed; exactly one statement is allowed and classified as read, write, schema change or admin. Writes hidden in CTEs are refused.
Function blocklist. Functions that write, read server files, reach other servers or sleep, such as
pg_read_file,dblinkorLOAD_FILE, are refused.Limits. Row and time limits, a cap per cell, column masks, a table allowlist, and for writes the row cap, dry run and audit log.
Localhost only by default. Requests must carry a loopback Host header, which blocks DNS rebinding. Any other address requires an admin token.
Secrets are references. env:NAME or keyring:NAME, resolved at call time and redacted from errors, logs and exports.
Accounts done properly. argon2id passwords, HttpOnly SameSite cookies, CSRF header and sign-in backoff.
Why not write an MCP server yourself?
You can. Here is what you'd be building.
| A hand-written server | mcp-forge | |
|---|---|---|
| A new tool | Code, build, redeploy | A few fields in the UI, live for connected agents |
| A changed API | Update the code by hand | Re-import the spec; your edits are kept |
| Secrets | Up to you | References only, redacted everywhere |
| SQL safety | Up to you | Parsed, read-only, limited, masked, audited |
| Approvals and access keys | Build them | Built in |
| Seeing what agents did | Add logging | Call log and audit log |
No lock-in
Your tools. Your machine. Your call.
mcp-forge is free and open source under MIT or Apache-2.0. It runs where you run it, connects only to the APIs and databases you configure, and exports every project as a plain tools.yaml you can keep in git.
# tools.yaml
tools:
- name: get_repo
auth: github
response_shape: '{name: .full_name, stars: .stargazers_count}'
kind:
type: http
method: GET
path_template: /repos/{owner}/{repo}
auth_configs:
- name: github
secret_ref: env:GITHUB_TOKEN
New
What's new
Full notes for every version are on the releases page.
Release 0.3.0, with everything listed here since 0.2.0. Release notes
Guided setup. Create forms open as step-by-step dialogs, and Next checks each step with the server.
Description quality. A score per tool, hints for weak spots, optional wording from Claude.
Chained tools, resources and prompts, and NoSQL: MongoDB, Redis, DynamoDB and Elasticsearch.
GraphQL tools and access keys for
/mcp.Approvals and the call log.
Release 0.2.0. Release notes
FAQ
Questions
What is MCP?
The Model Context Protocol is an open standard that lets AI applications such as Claude call external tools. mcp-forge serves every project as an MCP server over streamable HTTP at /mcp/<project> and over stdio.
Which MCP clients work with it?
Any client that speaks streamable HTTP or stdio: Claude Code, Claude Desktop, and clients that read .mcp.json. Tool changes are pushed to connected clients, so you can keep editing while an agent is connected.
Where are my API keys and database passwords stored?
Nowhere. mcp-forge keeps references such as env:GITHUB_TOKEN or keyring:shop-db and resolves them each time a tool runs. Pasted secret values are refused, and tools.yaml exports contain only the references.
Can an agent change data in my database?
Only if you allow it on that connection. Schema changes need a separate switch, admin statements never run, and full access must be confirmed explicitly.
Does it send telemetry?
No. It only connects to the APIs and databases you configure, and to spec URLs you import on purpose.
Can I run it on a server for my team?
Yes. Bind to another address with an admin token, put TLS in front with a reverse proxy, and add accounts with mcp-forge user add. A Docker image is included.
Ready to put an agent on your API?
Install it, start mcp-forge serve, and point it at an API or database you already use.