M
MCP Demo
Demo of MCP
Created 10/21/2025
Updated about 2 months ago
README
Repository documentation and setup instructions
MCP Demo
- Demonstrating creating a simple MCP server
- Serving from Github Codespaces
- Connecting with OpenAI
To run MCP Server
Open codespace.
$ pip install uv
$ uv run --with fastapi --with mcp[cli] --with duckdb --with uvicorn uvicorn serve2:app --host 0.0.0.0 --port 3001 --lifespan on
Tell VSCode to make the Port public (a popup should come up)
Copy public URL
To talk to server
Get client.py code on local machine
Will need .env file with OpenAI key
Replace MCP_URL in client.py with MCP url (add /mcp NO TRAILING SLASH to end)
Run client.py
Quick Setup
Installation guide for this server
Install Package (if required)
uvx mcp-demo
Cursor configuration (mcp.json)
{
"mcpServers": {
"mattharrison-mcp-demo": {
"command": "uvx",
"args": [
"mcp-demo"
]
}
}
}