> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# MCP 自建还是用托管平台:决策指南

> 2026 年 MCP "as a service" 生态已经成熟, 几乎不需要自建团队。这份 playbook 帮你判断哪条路适合你公司当前阶段。

## §0. 30 秒决策

```
你想做什么?
  ├── 内部团队用 Claude 接 GitHub/Linear/Notion/Stripe 这些 SaaS
  │   → 路径 A: 用现成 MCP server (zero build cost, 0 风险)
  │
  ├── 给你 SaaS 客户提供 "他能在 ChatGPT/Claude Desktop 接你 SaaS"
  │   → 路径 B: Hosted MCP Platform (Composio / TrueFoundry, $500-5K/月)
  │
  ├── 你 SaaS 有 unique 业务集成 hosted platform cover 不了
  │   → 路径 C: 完全自建 ($25K-150K MVP, 几乎从来不选)
  │
  └── 不确定要不要做 MCP?
      → 先读 [mcp-vs-cli-vs-skills-2026.md](mcp-vs-cli-vs-skills-2026.md) §3 决策树
        4 个 signal 都没出现就别做
```

***

## §1. MCP 生态 4 个 Layer

```
┌─────────────────────────────────────────────────────┐
│  Layer 4: Application / Use case                     │
│  (你 SaaS 的 "AI ops assistant" / 客户 AI 集成)     │
└─────────────────────┬───────────────────────────────┘
                      │
┌─────────────────────────────────────────────────────┐
│  Layer 3: MCP Gateway (反向代理 + 多 MCP server 管理) │
│  TrueFoundry MCP Gateway / MintMCP / 自托管          │
└─────────────────────┬───────────────────────────────┘
                      │
┌─────────────────────────────────────────────────────┐
│  Layer 2: Hosted MCP Platforms (帮你跑 MCP server)   │
│  Composio (500+ pre-built) / TrueFoundry / Smithery  │
│  Glama (discovery + hosting)                          │
└─────────────────────┬───────────────────────────────┘
                      │
┌─────────────────────────────────────────────────────┐
│  Layer 1: Pre-built MCP Servers (现成的, 免费/付费)   │
│  Glama Registry: 26,226 个 open-source MCP server    │
│  GitHub / Linear / Notion / Stripe 官方出的          │
│  Anthropic 官方 reference servers                     │
└─────────────────────────────────────────────────────┘
```

***

## §2. 路径 A — 用现成 MCP server (zero build)

**适合场景**: 工程团队想让 Claude 接 GitHub / Linear / Notion / Stripe / Slack / Jira / 其他 850+ 主流 SaaS 数据。

### 怎么做

这些 SaaS 公司**自己已经发布了 MCP server**。Composio / Glama 上 850-26,226 个 ready-to-use。安装一行命令:

```bash
# 例 1: 装 GitHub 官方 MCP server
npm install -g @modelcontextprotocol/server-github

# 例 2: 装 Slack MCP server (Composio hosted)
npx @composio/mcp install slack

# 例 3: 自托管 Linear MCP server
docker run -d -p 3000:3000 modelcontextprotocol/linear-server
```

然后在 Claude Desktop / Cursor / ChatGPT 配置文件加几行 JSON 就能用:

```json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_TOKEN": "ghp_xxxxx" }
    }
  }
}
```

### 经济账

| 维度                  | 数据                                                                |
| ------------------- | ----------------------------------------------------------------- |
| Setup cost          | **$0** (open source) 或 $10-50/月 (hosted platform 例如 Composio Pro) |
| Setup time          | **半天**                                                            |
| Ongoing maintenance | minimal — SaaS provider 维护 MCP server                             |

### 风险

跟前面 [mcp-vs-cli-vs-skills-2026.md](/ai/product/mcp-vs-cli-vs-skills-2026.md) §1 讲的 token 成本 / 52% abandoned 问题。**只在场景 Q1 (internal dev tool) / Q2 (外部 AI agent) 时用**。

→ **个人 dev 大量场景应该选 CLI 不是 MCP** (见 [build-cli-with-skills-2026.md](/ai/product/build-cli-with-skills-2026.md))

***

## §3. 路径 B — Hosted MCP Platform 帮你建

**适合场景**: 你 SaaS 想给客户提供"你能用 ChatGPT/Claude 接我 SaaS"能力, 但**不想自己运维 MCP infra**。

### Hosted platforms 在做什么

- 帮你 (a) 跑 MCP server (b) 管理 OAuth (c) handle multi-tenant (d) 提供 audit log + observability (e) 处理 protocol upgrade
- 你只需要把你 SaaS REST API 信息告诉 platform, platform 自动生成 MCP server
- 例: TrueFoundry 数据: sub-3ms gateway latency, 350+ req/s on single vCPU, OAuth 2.0 identity injection

### 横向对比 (2026)

| Platform        | 强项                                                                   | 弱项                           | 月费 (估算)                         |
| --------------- | -------------------------------------------------------------------- | ---------------------------- | ------------------------------- |
| **Composio**    | **850+ pre-built integrations**, breadth 最广, time-to-connect 最快      | enterprise governance 弱      | $50-500                         |
| **TrueFoundry** | **full lifecycle** (gateway + observability + RBAC), sub-3ms latency | learning curve 高             | $500-5K                         |
| **MintMCP**     | 简洁, 跟 LangChain 生态 align                                             | 新公司, prod 案例少                | $100-1K                         |
| **Glama**       | **26K+ MCP server discovery + hosting**                              | 更多是 marketplace, 不是 platform | 免费 (discovery) / $50+ (hosting) |
| **Smithery**    | 早期 MCP marketplace                                                   | 商业化不明                        | mostly free                     |

### 默认推荐

**TrueFoundry** — 因为它是唯一一家 take a position on the whole lifecycle 而不只是 gateway layer 的。给 multi-tenant SMB 客户最稳。

**例外**: 如果你 use case 是 "我想 quickly demo 一个 AI agent 能连 20 个 SaaS", 选 Composio (850+ pre-built integration breadth)。

### 经济账

| 维度         | 数据                                             |
| ---------- | ---------------------------------------------- |
| Setup cost | $500-5,000/月 (取决 tenant 数 + traffic)           |
| Setup time | 2-4 周                                          |
| Ongoing    | 月费 + 你 dev team 维护 MCP server 业务逻辑 (\~0.5 FTE) |

### 触发条件 — 什么时候你 SaaS 该走路径 B

只有当出现下面**任何一种** signal:

1. **客户主动问**: "我能不能在 ChatGPT 里连你 SaaS?"
2. **客户的 AI agent 想接入**: 例如客户自己买了 Cursor / Claude Desktop
3. **大 enterprise 客户要求**: "用我们公司 AI assistant 集成你 data"
4. **你自己要做 MCP marketplace** (像 Linear / Stripe 那样把 MCP 当 product 卖)

**4 个 signal 都没出现就别花钱**。Phase 3 (你 SaaS 12+ 月后) 再说。

***

## §4. 路径 C — 完全自建 (in-house team)

**适合场景**: **极特殊** — 例如你 SaaS 需要把 MCP server 跟支付链路深度集成, hosted platform 拿不到那种 access。或者你想 own MCP 当作核心 product (像 Linear / Stripe)。

### 经济账

| 维度                  | 数据                                                          |
| ------------------- | ----------------------------------------------------------- |
| Setup cost          | **$25K-150K MVP** (Bacancy 报价 $25K-400K+)                   |
| Setup time          | **1-3 月**                                                   |
| Team                | 1 senior backend + 1 security + 1 SRE                       |
| Ongoing operational | $500-25K/月 (token spend + vector DB + monitoring + on-call) |
| Hidden ops cost     | +30-50% on initial dev budget in first 12 months            |

### 何时选 — 几乎从来不

99% SaaS Phase 1-3 不该走这条。理由:

- 投入 $50-150K + 几个月 = 同等成本可以 ship 2-3 个真正给客户用的 feature
- Hosted platform 已经 cover 80% scenario
- Production-grade MCP 需要 ongoing 维护 (protocol upgrade, security patch, OAuth 2.1 spec evolution) — 1 FTE 持续投入

**Year 2+ 真正 unique 业务集成需要 + 已经有 0.5+ FTE budget 时再考虑**。

### 自建 v1 应该只暴露 read-heavy tools

详见 [mcp-vs-cli-vs-skills-2026.md](/ai/product/mcp-vs-cli-vs-skills-2026.md) §7。

***

## §5. 你 SaaS 怎么选 — 按时间轴

| Phase (你 SaaS 阶段)                  | MCP 策略                                                                                                   |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------- |
| **M0-M6** (Phase 0+1 基础设施期)        | **路径 A 内部用** — 工程团队在 Claude Desktop 接 GitHub MCP server, 0 cost productivity 提升。**绝对不给客户暴露 MCP**, 因为客户没问 |
| **M6-M12** (Phase 2 AI feature 上线) | 仍然 **路径 A 内部用**, 同时**用 LLM function calling 跑你 SaaS 的 4-5 个 AI feature** (不走 MCP)                        |
| **M12+** (Phase 3)                 | 监控 §3 的 4 个 signal。如果出现 → 走 **路径 B** (Composio / TrueFoundry hosted)。几乎不该走 **路径 C 完全自建**                 |

***

## §6. 一句话给老板

> **MCP server 是 protocol 层, 坐在 REST API 之上让 LLM 调用。2026 已经有完整 "MCP as a service" 生态 (Composio 850+ pre-built / TrueFoundry / Glama 26K registry), 几乎不需要自建。你 SaaS 当前阶段 (Phase 1-2) 不该自建 MCP server, 用 partner 提供的就行。Phase 3 (12+ 月) 客户主动问"能连 ChatGPT 吗"再考虑 Hosted Platform ($500-5K/月)。完全自建 ($25K-150K MVP) 是 Year 2+ 才考虑的事。**

***

## §7. Sources

- [Hosted MCP Platforms 2026 — Composio comparison](https://composio.dev/content/hosted-mcp-platforms)
- [Best MCP Registries 2026 — TrueFoundry](https://www.truefoundry.com/blog/best-mcp-registries)
- [Best MCP Gateways for Enterprise 2026 (DEV)](https://dev.to/varshithvhegde/best-mcp-gateways-for-enterprise-teams-in-2026-5fk8)
- [MintMCP vs TrueFoundry vs Composio](https://www.mintmcp.com/blog/mintmcp-vs-truefoundry-vs-composio)
- [Glama Registry — 26,226 open-source MCP servers](https://glama.ai/mcp/servers)
- [9 Best MCP Servers and Deployment Platforms for Enterprise 2026 (Prefect)](https://www.prefect.io/resources/best-mcp-deployment-platforms-enterprise-2026)
- [MCP Server Development Cost 2026 — Bacancy](https://www.bacancytechnology.com/blog/mcp-server-development-cost)
- [Awesome MCP Enterprise (GitHub curated list)](https://github.com/bh-rat/awesome-mcp-enterprise)
- Related playbooks:
  - [mcp-vs-cli-vs-skills-2026.md](/ai/product/mcp-vs-cli-vs-skills-2026.md) — when to use MCP at all
  - [build-cli-with-skills-2026.md](/ai/product/build-cli-with-skills-2026.md) — cheaper alternative for most cases
