Skip to main content
Glama

1MCP Server

index.md4.45 kB
--- layout: home hero: name: '1MCP Agent' text: '聚合所有 MCP 服务器的统一服务器' tagline: 一个统一的模型上下文协议服务器实现,作为多个 MCP 服务器的代理/多路复用器 image: src: /images/logo.png alt: 1MCP Logo actions: - theme: brand text: 开始使用 link: /zh/guide/getting-started - theme: alt text: 快速入门 link: /zh/guide/quick-start - theme: alt text: 在 GitHub 上查看 link: https://github.com/1mcp-app/agent features: - icon: 🔄 title: 统一接口 details: 聚合多个 MCP 服务器的单一端点,简化 AI 助手集成 - icon: 🔒 title: OAuth 2.1 身份验证 details: 生产就绪的安全性,具有基于范围的授权和安全令牌管理 - icon: ⚡ title: 高性能 details: 高效的请求转发,具备适当的错误处理和监控功能 - icon: 🛡️ title: 安全优先 details: Stdio 传输隔离、输入净化和全面的审计日志 - icon: 🔧 title: 易于配置 details: 单一 JSON 配置文件,支持热重载和验证 --- ## 为什么选择 1MCP? **问题**:AI 助手需要连接到多个 MCP 服务器,但管理数十个独立连接是复杂、不可靠且安全性密集的。 **解决方案**:1MCP 作为统一的代理/多路复用器,将多个 MCP 服务器聚合在单一、可靠的接口后面。 ```mermaid graph TB subgraph "AI 客户端" C1[Claude Desktop] C2[Cursor] C3[Cherry Studio] end subgraph "1MCP 代理" P[统一接口<br/>HTTP/SSE + OAuth] end subgraph "MCP 服务器" S1[文件系统] S2[网络搜索] S3[数据库] S4[内存] end C1 --> P C2 --> P C3 --> P P --> S1 P --> S2 P --> S3 P --> S4 ``` ## 快速示例 从简单配置开始: ```json { "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@latest"], "tags": ["context7", "docs", "development", "code"], "disabled": false }, "git": { "command": "uvx", "args": ["mcp-server-git", "--repository", "/path/to/your/awesome-project"], "tags": ["git", "awesome-project"], "disabled": false }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"], "tags": ["files", "tmpdir"], "disabled": false }, "server-sequential-thinking": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"], "tags": ["thinking"], "disabled": false }, "playwright": { "command": "npx", "args": ["-y", "@playwright/mcp@latest"], "tags": ["playwright", "frontend", "web", "ui", "browser"], "disabled": false } } } ``` ```bash # 启动代理 npx -y @1mcp/agent --config mcp.json --port 3000 ``` 现在您的代理正在运行。将您的 MCP 客户端连接到 `http://localhost:3000` 开始使用您聚合的工具。 ## 主要优势 - **🎯 简化集成**:一个连接代替多个连接 - **🔐 生产安全性**:OAuth 2.1 与基于范围的权限 - **📈 更好的可靠性**:集中化错误处理和监控 - **⚙️ 易于管理**:单一配置,热重载支持 - **🚀 性能**:高效多路复用,最小开销 ## 下一步? <div class="vp-feature-grid"> <a href="/zh/guide/getting-started" class="vp-feature-box"> <h3>📚 学习基础知识</h3> <p>了解 1MCP 架构和核心概念</p> </a> <a href="/zh/guide/quick-start" class="vp-feature-box"> <h3>⚡ 快速入门</h3> <p>5 分钟内通过基本配置快速运行</p> </a> <a href="/zh/reference/architecture" class="vp-feature-box"> <h3>🏗️ 深入了解</h3> <p>全面的系统架构和设计决策</p> </a> </div> <style> .vp-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; } .vp-feature-box { padding: 1.5rem; border: 1px solid var(--vp-c-border); border-radius: 8px; text-decoration: none; transition: border-color 0.25s; } .vp-feature-box:hover { border-color: var(--vp-c-brand); } .vp-feature-box h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; } .vp-feature-box p { margin: 0; color: var(--vp-c-text-2); line-height: 1.4; } </style>

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/1mcp-app/agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server