Skip to main content

Python Demo MCP Server

Introduction

This is a demonstration server implementing the Model Context Protocol (MCP) with Server-Sent Events (SSE). It provides a practical example of how to build a server that can handle streaming content production and management.

Getting Started

  1. Set up your Python environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install the required packages
uv pip install -r requirements.txt

Run the server

Development Environment

python server.py

The server will start on http://localhost:8080 by default.

Production Environment

For deployment on Sevalla, make sure to select Dockerfile based build environment!

Usage in Cursor

To use this server in Cursor, paste the following in your mcp.json file:

"demo-mcp": {
  "url": "https://<your-mcp-server-domain>/sse"
}

Make sure to replace <your-mcp-server-domain> with the actual domain of your server.

Metadata

Release files for iflow-mcp_sevalla-templates-python-demo-mcp-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_sevalla-templates-python-demo-mcp-server 0.1.0
File Size Uploaded
iflow_mcp_sevalla_templates_python_demo_mcp_server-0.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_sevalla-templates-python-demo-mcp-server 0.1.0
File Interpreter ABI Platform
iflow_mcp_sevalla_templates_python_demo_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / iflow_mcp_sevalla_templates_python_demo_mcp_server-0.1.0.tar.gz

Download URL iflow_mcp_sevalla_templates_python_demo_mcp_server-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c261d7de29855379d88c089f9ac66d4e0c03ceeda76c68e9a61c3b7b8f979aa5
BLAKE2b-256 checksum
How to use checksums
67994d6f400b20360e999dc18f618325d93474239a7ee33e854a914798d4bf56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_sevalla_templates_python_demo_mcp_server-0.1.0-py3-none-any.whl

Download URL iflow_mcp_sevalla_templates_python_demo_mcp_server-0.1.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5217d7ad182e19ed23f50a09873a281c0c1c30c4900124dd49264f36f7efef38
BLAKE2b-256 checksum
How to use checksums
41acaf148b580cd901b0d412ddfc1943006463e41653c1517230dbc08a16600f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page