mcp-sse
Based on FastMCP
Provides a sample tool call and a sample resource for MCP servers.
Follow the guide on # Quickstart and the server should be running on http://localhost:8000/sse
Add the configuration in Windsurf and you should be able to call the tool and resource.
Dependencies
Tested with Python 3.13.2
brew install python3
npm install npxQuickstart
cd mcp-sse/
source .venv/bin/activate
pip3 install -r requirements.txt
# For HTTP-streamable Servers
python3 server-http-streamable.py
# For SSE Servers (deprecated in support of http-streamable)
python3 server-sse.pyConfiguration in Windsurf
This configuration is for SSE
{
"mcpServers": {
"mcp_example_sse": {
"serverUrl": "http://localhost:8000/sse"
}
}
}This configuration is for HTTP Streamable. The env configuration for AUTH_TEST is optional.
{
"mcpServers": {
"custom-mcp-server-sse-at": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8000/mcp",
"--header",
"Authorization: Bearer ${AUTH_TEST}"
],
"env":{
"AUTH_TEST": "ABCXYZ"
}
}
}
}