mcp-forge
by achetronic·★ 90·综合分 47
Go语言编写、包含OAuth认证的生产级MCP服务器模板,附带部署示例。
developer-toolssecurityops-infra
31
Forks
0
活跃 Issue
4 个月前
最近提交
2 天前
收录于
概述
MCP Forge 是一个用 Go 语言构建的完整 MCP 服务器模板,提供生产级特性,包括 OAuth 认证(符合 RFC 8414 和 RFC 9728 标准)、JWT 验证方法和可配置的访问日志。它包含远程提供商(如 Claude Web 和 OpenAI)和本地提供商(如 Claude Desktop)的示例。该项目提供 Dockerfile、Helm Chart 和 GitHub Actions CI/CD,使部署和扩展自定义工具和资源变得容易。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
你:构建带有 OAuth 认证的安全 MCP 服务器用于企业部署
你:使用最简设置在 Go 中创建自定义 MCP 工具和资源
你:使用 Helm 图表将 MCP 服务器部署到 Kubernetes
你:MCP Forge 支持哪些 OAuth 标准?
你:我可以将 MCP Forge 部署到生产环境吗?
什么时候选它
当使用 Go 构建需要 OAuth 认证且需要支持本地和远程 AI 提供商的生产级 MCP 服务器时,选择此模板。
什么时候不要选它
如果你需要非 Go 语言的服务器,或者要求不需要 OAuth 复杂性的更简单认证方式,不要选择此模板。
可对比工具
mcp-gomcp-remotemcp-server-template
安装
安装
- 克隆仓库:
git clone https://github.com/achetronic/mcp-forge.git
cd mcp-forge- 先决条件:
- Go 1.24+
- 运行服务器:
make run对于本地开发与 Claude Desktop,请按照 README 中描述使用 stdio 或 HTTP 模式。
Claude Desktop 配置(HTTP 模式)
// file: claude_desktop_config.json
{
"mcpServers": {
"local-proxy-remote": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8080/mcp",
"--transport",
"http-only",
"--header",
"Authorization: Bearer ${JWT}",
"--header",
"X-Validated-Jwt: ${JWT}"
],
"env": {
"JWT": "eyJhbGciOiJSUzI1NiIsImtpZCI6..."
}
}
}
}FAQ
- MCP Forge 支持哪些 OAuth 标准?
- MCP Forge 支持 OAuth RFC 8414 和 RFC 9728,带有可配置的 .well-known/oauth-protected-resource 和 .well-known/oauth-authorization-server 端点。
- 我可以将 MCP Forge 部署到生产环境吗?
- 是的,MCP Forge 是生产就绪的,包含部署示例、Dockerfile、Helm Chart 和 GitHub Actions CI/CD。它还包括使用 Istio 等代理进行 JWT 验证的建议。
mcp-forge 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。