
mcp demo
一个包含前端、后端和MCP服务器的示例项目。
Repository Info
About This Server
一个包含前端、后端和MCP服务器的示例项目。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Project Setup Instructions
This project consists of three main components:
- Frontend: Built with Svelte.
- Backend: Flask API.
- MCP Server: FastMCP server.
Follow the steps below to set up and run the project.
Frontend (Svelte)
Prerequisites
- Node.js installed on your system.
Setup
- Navigate to the Svelte project directory:
cd svelte-chat-ui - Install dependencies:
npm install - Start the development server:
npm run dev - Open the application in your browser at the URL provided by the Svelte server (typically
http://localhost:5173).
Backend (Flask API)
Prerequisites
- Python installed on your system.
Setup
- Create a virtual environment (works for both MCP server and Flask API):
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` - Install dependencies:
pip install -r requirements.txt - Start both the Flask API and MCP server:
python run_servers.py - The Flask API will be available at
http://127.0.0.1:5000.
MCP Server
Prerequisites
- Python installed on your system.
Setup
- Run the MCP server:
python mcp_server.py - Ensure the server is running and accessible.
Integration
- Ensure both the Flask API and MCP server are running.
- Use the Svelte frontend to interact with the backend and MCP server.
Let me know if you encounter any issues during setup!
Sample Queries
Query vector Db: { "type": "tool", "name": "query_vector_db", "arguments": { "prompt": "Where is the head office of Phoenix Homes located?", "db_path": "combined_vector_db" }}
Build website vector db: { "type": "tool", "name": "build_website_vector_db", "arguments": { "urls": [ "https://www.phoenixhomes.ca/contact-us/", "https://www.phoenixhomes.ca/about-us/", "https://www.phoenixhomes.ca/faq/" ] } }
Quick Start
Clone the repository
git clone https://github.com/sasuke0787/mcp-demoInstall dependencies
cd mcp-demo
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.