mcp-sse

JRWu/mcp-sse

3.2

If you are the rightful owner of mcp-sse and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server is a framework designed to facilitate communication between different components of a system, particularly in the context of machine learning and data processing.

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 npx

Quickstart

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.py

Configuration 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"
            }
        }
    }
}