Spaces:
Running
Running
File size: 1,565 Bytes
45d5c6a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
---
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
1. **Clone the repository** (if not already):
```sh
git clone <repo-url>
cd mcp_demo
```
2. **Install dependencies:**
```sh
pip install -r requirements.txt
```
3. **Run the server:**
```sh
python server.py
```
or
```sh
python app.py
```
4. **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`).
## 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. |