# MCP — 云端托管

AShareHub 提供云端托管的 [Model Context Protocol](https://modelcontextprotocol.io) 服务。无需本地安装，直接在 MCP 客户端中填入连接地址即可。

## 连接地址

https://asharehub.com/mcp

请使用 Streamable HTTP，并通过 `X-API-Key` 请求头传入密钥。旧版 `/mcp/sse` 仍供现有 SSE 客户端兼容使用；URL 查询参数鉴权仅在迁移期保留。

## 客户端配置

### Claude Desktop / Claude Code

.mcp.json / ~/.claude.json

```
{
  "mcpServers": {
    "asharehub": {
      "type": "http",
      "url": "https://asharehub.com/mcp",
      "headers": {
        "X-API-Key": "ash_your_key"
      }
    }
  }
}
```

### Cursor

.cursor/mcp.json

```
{
  "mcpServers": {
    "asharehub": {
      "url": "https://asharehub.com/mcp",
      "headers": {
        "X-API-Key": "ash_your_key"
      }
    }
  }
}
```

### Windsurf

~/.codeium/windsurf/mcp_config.json

```
{
  "mcpServers": {
    "asharehub": {
      "serverUrl": "https://asharehub.com/mcp",
      "headers": {
        "X-API-Key": "ash_your_key"
      }
    }
  }
}
```
