
mcp_assistant
一个集成了MCP工具并使用本地LLM模型的聊天机器人,支持图像生成和多种实用功能。
Repository Info
About This Server
一个集成了MCP工具并使用本地LLM模型的聊天机器人,支持图像生成和多种实用功能。
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
MCP Application
This is a locally hosted Chatbot with MCP integrated.
Overall features:
- Locally hosted LLM: The chatbot uses Ollama LLM model and deploy on local machine
- MCP Client and Server: MCP tools are built in MCP server and FastMCP integrated with LLM as MCP Client.
- Image Gen Tool: Integrate locally deployed Image Generation model as an API endpoint into MCP tools for functionality.
Setups
- LLM with llama-server
Make sure you have llama-server installed.
- Pull the model
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M --port 4001 --jinja
- Install Dependencies
This project uses Conda environment.
conda create -n <your_env_name> python=3.11
pip install -r requirements.txt
- Startup Image Gen tool:
In order to have the Image Generation tool, we will start the FastAPI server with the model endpoint.
Open a terminal
cd server/
python run main_api.py
The server will start on http://localhost:3001
- Startup MCP Server:
We will startup the MCP Server with all of the tools.
Currently, there are 4 tools:
-
get_alerts: Call a request to an external API for weather alert based on the US state.
-
get_forecast: Call a request to an external API for weather alert based on the latitude and longtitude.
-
get_multiply: Do multiplicate between 2 numbers.
-
generate_image: Call to the hosted FastAPI Image Generation model.
Open a second terminal
cd server/
python main_mcp.py
The server will start on http://localhost:5001
- Startup the main app:
This project uses Gradio as the UI of the application which has a chatbot interface along with uploading and displaying images from the tools.
Open a third terminal
cd server/
python app.py
The server will start on http://localhost:7860
Quick Start
Clone the repository
git clone https://github.com/constanreedjohn/mcp_assistantInstall dependencies
cd mcp_assistant
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.