如何将 Contentful 远程 MCP 连接到 Cline
约 1 分钟即可把 Contentful 的远程 MCP 服务端接入 Cline。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。
🔒 Client-side only — never leaves your browser.
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"contentful": {
"url": "https://mcp.contentful.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}claude mcp add --transport http contentful https://mcp.contentful.com/mcp
With credential header:
claude mcp add --transport http contentful https://mcp.contentful.com/mcp --header "Authorization: Bearer YOUR_API_KEY"
Or add to .vscode/mcp.json:
{
"servers": {
"contentful": {
"type": "http",
"url": "https://mcp.contentful.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://mcp.contentful.com/mcp - Provide your API key / Bearer token when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"contentful": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.contentful.com/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"contentful": {
"serverUrl": "https://mcp.contentful.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"contentful": {
"url": "https://mcp.contentful.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.contentful] url = "https://mcp.contentful.com/mcp" bearer_token_env_var = "CONTENTFUL_TOKEN"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"contentful": {
"type": "streamableHttp",
"url": "https://mcp.contentful.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"contentful": {
"httpUrl": "https://mcp.contentful.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}接入步骤
- 打开 Cline MCP 设置 — Cline 侧边栏 → MCP Servers → 编辑
cline_mcp_settings.json。 - 添加服务端 — 写入
"contentful": { "type": "streamableHttp", "url":https://mcp.contentful.com/mcp}。 - 完成认证 — 在 Contentful 控制台获取凭据,并将其作为
Authorization: Bearer <密钥>请求头加入配置。 - 验证 — 在 在线 Inspector 中粘贴
https://mcp.contentful.com/mcp并运行 initialize + tools/list 验证连通性。