mcp_demo
If you are the rightful owner of mcp_demo 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.
A demonstration of the Model Context Protocol (MCP) implementation with Python, featuring both client and server components for AI model interaction.
MCP Demo 🚀
A demonstration of the Model Context Protocol (MCP) implementation with Python, featuring both client and server components for AI model interaction.
Installation 📦
Install dependencies using uv sync
:
uv sync install
Running the Application 🏃♀️
Standard Mode 🖥️
python mcp_client.py
Then input your query when prompted.
Debug Mode 🔍
npx @modelcontextprotocol/inspector python mcp_server/server.py
SSE Mode 📡
python mcp_server/server_sse.py
Configuration ⚙️
MCP Settings 🛠️
Set the MCP endpoint to:
http://localhost:8000/sse
Development 👨💻
mcp dev mcp_server/server_sse.py
or
python mcp_server/server_sse.py
Tools and Debugging 🧰
MCP Inspector 🔎
Access the inspector at:
http://127.0.0.1:6274/#tools