Spaces:
Running
Running
A newer version of the Gradio SDK is available:
5.42.0
metadata
license: apache-2.0
title: MCP test
sdk: gradio
emoji: π
colorFrom: blue
colorTo: green
short_description: This project demonstrates a simple Model Context Protocol (M
MCP Demo Project
This project demonstrates a simple Model Context Protocol (MCP) server integration using Gradio and Python. It includes a sample database and basic server logic for experimentation and learning purposes.
Project Structure
mcp_demo/
βββ app.py # Main application entry point
βββ requirements.txt # Python dependencies
βββ server.py # MCP server implementation
βββ data/
β βββ northwind.db # Sample SQLite database
βββ __pycache__/ # Python bytecode cache
Features
- MCP server endpoint (compatible with Gradio MCP client)
- Example SQLite database (Northwind)
- Simple API for experimentation
Setup Instructions
Clone the repository (if not already):
git clone <repo-url> cd mcp_demo
Install dependencies:
pip install -r requirements.txt
Run the server:
python server.py
or
python app.py
Access the MCP server:
- The server will be available at
http://127.0.0.1:7860/gradio_api/mcp/sse
(or as configured in.vscode/mcp.json
).
- The server will be available at
Configuration
- The
.vscode/mcp.json
file contains the MCP server URL configuration for local or remote use.
Requirements
- Python 3.8+
- pip
License
This project is for educational and demonstration purposes.