
MCP_DEMO
演示:简单客户端和服务器文件的MCP协议
1
Github Watches
0
Github Forks
2
Github Stars
Demo MCP
Info
- Server - Using server examples from modelcontextprotocol/python-sdk
- Client - Using code from slavashvets/mcp-http-client-example
- Debug - Using Inspector
Setup
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
Run Server
-
python server.py
Run demo client
-
python client.py http://localhost:8000/sse
Run demo host (langchain/langgraph)
You need to run ollama and download a model
-
python host_langchain.py llama3.3 http://localhost:11434
Debug
- Open a new terminal and run
npx @modelcontextprotocol/inspector
- Point browser to http://127.0.0.1:6274
- Change Transport Type to
SSE
- Change URL to
http://localhost:8000/sse
- Press
Connect
and start testing server
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Take an adjectivised noun, and create images making it progressively more adjective!
Reviews

user_zMe16XD4
I recently tried mcp_demo by josx from GitHub, and it's fantastic! The simplicity and effectiveness of this tool speak volumes. Highly recommended for anyone needing a reliable solution. Check it out at the provided URL; you won't be disappointed!