Skip to content

Brave-Python/python-mcp-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python MCP Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.6%
  • Dockerfile 16.4%