This document provides detailed instructions for connecting the MCP Inspector to the SingleStore MCP Server.
-
Start the server with:
npm run start:inspector
-
Look for the following lines in the server output:
MCP SingleStore SSE server listening on port 8081 MCP Inspector compatible endpoints: - http://localhost:8081/stream - http://localhost:8081/mcp-sse
There are several ways to start the MCP Inspector:
Run:
npm run inspectorThis script will start both the server and the MCP Inspector.
If the server is already running:
npx @modelcontextprotocol/inspectorWhen the MCP Inspector opens, try one of the following URLs in order of recommendation:
-
Standard MCP Inspector connection endpoint:
http://localhost:8081/connect?transportType=sse -
Primary SSE Stream endpoint:
http://localhost:8081/stream -
Alternative SSE endpoint:
http://localhost:8081/mcp-sse -
Root server URL:
http://localhost:8081
Make sure "SSE" is selected as the transport type in the dropdown.
If you encounter connection issues:
-
Debug Headers:
npm run debug:headers
This will check the Content-Type headers returned by different endpoints.
-
Test SSE Connection:
npm run test:sse
This will test if the SSE connection is working properly.
-
Check Server Logs: Look for messages like:
[SSE] Connection attempt from 127.0.0.1 with transport sse[SSE] Set Content-Type header: text/event-stream
-
Common Issues:
- If you see
Invalid content type, expected "text/event-stream", try using the/streamor/mcp-sseendpoints - If you see connection timeouts, ensure the server is running and the port is correct
- Try restarting both the server and the MCP Inspector
- If you see
-
Manual Testing: You can try a direct curl request:
curl -N http://localhost:8081/stream
You should see events streaming in.
| Endpoint | Purpose |
|---|---|
/ |
Root endpoint - server information |
/connect?transportType=sse |
Standard MCP Inspector connection endpoint (recommended) |
/stream |
Primary SSE endpoint for MCP Inspector |
/mcp-sse |
Alternative SSE endpoint with different header setting |
/sse |
Standard SSE endpoint |
/health |
Health check endpoint |
/tools |
List available tools |
/call-tool |
Execute a tool (POST) |
Below are the complete connection URLs to try in the MCP Inspector, in order of most likely to work:
http://localhost:8081/connect?transportType=ssehttp://localhost:8081/streamhttp://localhost:8081/mcp-ssehttp://localhost:8081