Astro MCP Integration with Claude Desktop
Hey, there. Was anybody able to integrate the Astro MCP with Claude? I've been trying to integrate the Astro MCP server with Claude Desktop on Ubuntu and encountered issues:
Current setup:
- Astro v5.7.12
- astro-mcp v0.3.1
- Claude Desktop (Ubuntu Linux)
- astro.config.mjs has mcp() integration properly configured
- Project running on port 4322
Verification Steps:
- Astro MCP server is correctly running at http://127.0.0.1:4322/__mcp/sse
- Verified server is operational with:
curl -N http://127.0.0.1:4322/__mcp/sse
- MCP Inspector successfully connects to the Astro MCP server at http://127.0.0.1:6274/ and shows all tools (get-astro-config, list-astro-routes, etc.)
Key Issues:
-
Claude Desktop fails to connect with JSON parsing errors:
Unexpected token 'e', "event: endpoint" is not valid JSON
Unexpected token 'd', "data: /__m"... is not valid JSON
-
Error logs suggest a protocol mismatch:
- Claude Desktop expects JSON-RPC messages
- Astro MCP server is sending Server-Sent Events (SSE) format data
-
Attempts to use various configuration options in Claude Desktop all fail:
- Direct URL configuration
- Using transport type "sse"
- Using curl as a command
- Trying the MCP Inspector proxy
Would you have any guidance on the correct way to bridge between the Astro MCP server's SSE protocol and the JSON-RPC protocol that Claude Desktop expects?
Astro MCP Integration with Claude Desktop
Hey, there. Was anybody able to integrate the Astro MCP with Claude? I've been trying to integrate the Astro MCP server with Claude Desktop on Ubuntu and encountered issues:
Current setup:
Verification Steps:
curl -N http://127.0.0.1:4322/__mcp/sseKey Issues:
Claude Desktop fails to connect with JSON parsing errors:
Unexpected token 'e', "event: endpoint" is not valid JSONUnexpected token 'd', "data: /__m"... is not valid JSONError logs suggest a protocol mismatch:
Attempts to use various configuration options in Claude Desktop all fail:
Would you have any guidance on the correct way to bridge between the Astro MCP server's SSE protocol and the JSON-RPC protocol that Claude Desktop expects?