本项目建于2025-03-30,是一个MCP Client 与 MCP Server的样例实现(Python版本)

Created By
jayliangdla year ago
MCP Client 与 MCP Server基于SSE方式的样例实现(Python版本)
Overview

What is py-mcp-sse?

py-mcp-sse is a sample implementation of an MCP Client and MCP Server using Server-Sent Events (SSE) in Python. It is based on the original project and optimized for better performance.

How to use py-mcp-sse?

To use py-mcp-sse, clone the repository, set up the environment, configure the necessary API keys, and run the server and client scripts.

Key features of py-mcp-sse?

  • Implements an MCP server and client using SSE for real-time communication.
  • Provides a book search tool based on the Gutenberg Project API.
  • Supports easy setup and configuration with environment variables.

Use cases of py-mcp-sse?

  1. Real-time book search and retrieval using the MCP server.
  2. Connecting multiple clients to a single server for collaborative tasks.
  3. Demonstrating the use of SSE in client-server applications.

FAQ from py-mcp-sse?

  • What are the system requirements?

Python 3.13 or higher and uv package manager (recommended).

  • How do I configure the environment?

Copy the sample environment file and fill in your OpenRouter API key.

  • Can I run the server and client on different machines?

Yes, as long as they can communicate over the network.

Project Info
Created At
a year ago
Updated At
a year ago
Author Name
jayliangdl
Star
1
Language
Python
License
-
Tags

Recommend Servers

View All
Tavily Mcp
@tavily-ai

JavaScript
a year ago
Thiri Chord Intelligence
@BluesPrince

### Deterministic Music Theory for Claude, Cursor, and Autonomous AI Agents Large Language Models (LLMs) frequently hallucinate music theory, leading to incorrect notes, false Roman numerals, and broken voice leading. **THIRI** solves this by providing a deterministic, mathematical music-theory engine (pitch-class-set theory over ℤ/12) directly to your AI. It gives AI assistants precise, reproducible harmonic reasoning in milliseconds, allowing them to write correct musical scores, analyze progressions, and generate playable arrangements. #### 🎷 Key Features: * **Chord Analysis (`analyze_chord`):** Parse any symbol (e.g., `Cmaj7/E`, `G7#11`) to retrieve root, quality, intervals, Roman numerals, and diatonic or chromatic harmonic functions. * **Note Resolution (`resolve_chord`):** Resolve chord symbols to spelled notes (enharmonically correct), frequencies (Hz), MIDI numbers, and scale recommendations. * **Voicing Engine (`generate_voicing`):** Generate instrument-ready voicings (rootless, shell, triad, pad, drop-2, drop-3) and calculate voice-leading scores for transitions. * **Reharmonization (`reharmonize`):** Substitute progressions using classic jazz techniques, including Tritone Substitution, ii-V Insertion, Modal Interchange, Coltrane Changes, and Backdoor cadences. *Ideal for developers building AI music assistants, digital audio workstation (DAW) agents, educational theory tools, and automated composition workflows.*

5 hours ago