Forges
MCP server by agntn Verified · npm:@agntn
Gives AI assistants one API for repositories, issues and pull requests on GitHub, GitLab, Gitea, GitBucket and Cloudflare Artifacts. Built for developers and agents that work across several Git hosts.
Install Forges
Built from the published package, never by AI.
claude mcp add forges -- npx -y @agntn/forgesRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"forges": {
"args": [
"-y",
"@agntn/forges"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"forges": {
"args": [
"-y",
"@agntn/forges"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"forges": {
"args": [
"-y",
"@agntn/forges"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add forges -- npx -y @agntn/forges{
"mcpServers": {
"forges": {
"args": [
"-y",
"@agntn/forges"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add forges npx -y @agntn/forgesGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the forges block.
About
@agntn/forges is an MCP server, CLI and TypeScript library with one API for GitHub, GitLab, Gitea, GitBucket and Cloudflare Artifacts. The same calls, such as repos.get and pullRequests.list, return the same types on every forge, so a GitHub pull request and a GitLab merge request are handled the same way. A local Git module can inspect a checkout and check whether a merge commit is in the target branch's history.
It exposes 59 agent tools through MCP, Pi, OMP and a CLI, and 14 of them write to the host. If no token is passed, it looks for one in an explicit value, the environment, the gh or glab CLI, or the CLI config file. It suits developers and agents that review code across several Git hosts.
Written from the project's README and checked against it.
Tools it gives your assistant
forges_repos_getReads a repository's full name, description and default branch.forges_users_authenticatedShows which account is signed in, so you can check identity before writes.
What you need
- Node.js 26 or newer
- Git on PATH for the local checkout helpers
- An access token for each forge, or a logged-in gh or glab CLI
Try asking
- Show the description and default branch of octocat/Hello-World
- Check which account I am signed in as before making changes
- Find open bug issues across the agntn repositories
Good to know
- 14 of the 59 tools write to the host
- Code search on Gitea returns a 501 error, not an empty result
- Cloudflare Artifacts has no issues, so issue calls return a 501
- Branch management, release assets, webhooks and organization administration are out of scope
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Forges
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Forges: common questions
Which Git hosts does @agntn/forges support?
The source lists GitHub, GitLab, Gitea (including Forgejo and Codeberg through baseURL), GitBucket and Cloudflare Artifacts.
How does it find an access token?
It checks an explicit token value first, then the environment, then the gh or glab CLI, then the CLI config file, and the first hit is used.
What happens when a forge does not support a method?
The call throws a ForgesError with status 501 instead of returning an empty result.
How do I install Forges?
In Claude Code run claude mcp add forges -- npx -y @agntn/forges. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Forges the official server?
Forges is published by npm:@agntn from its verified domain in the official MCP Registry.
Is Forges free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Forges safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Forges?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Forges work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
