Customized MCP Project
This project leverages the mcp library with CLI support and integrates with OpenAI’s API.
Requirements
Make sure to install the required dependencies before running the project:
pip install -r requirements.txt
Usage
Configure your OpenAI API key as an environment variable:
export OPENAI_API_KEY="your-api-key"Start the MCP server:
python server.pyUse the client to interact with the server:
python client.pyAlternatively, use the orchestrator to query the LLM and tools:
python main.py
Example
Querying the Weather Tool
Run the client and call the get_weather tool:
python client.py
Example interaction:
You: List tools
Assistant: {
"tools": [
{
"name": "get_weather",
"description": "Get weather for a city",
"parameters": {
"city": {
"type": "string",
"description": "Name of the city"
}
}
}
]
}
You: Call get_weather with {"city": "Beijing"}
Assistant: 北京的天气是晴天
Dependencies
openai==1.70.0mcp[cli]==1.6.0
License
This project is licensed under the MIT License.
Customized MCP Project
Project Details
- MorvanZhou/customized_mcp
- MIT License
- Last Updated: 4/7/2025
Recomended MCP Servers
This is a MCP server I built to interact with my hybrid graph rag db.
A MCP(Model Context Protocol) server that accesses to Lightdash
Claude Desktop 的火山引擎知识库 MCP 服务器
Model Context Protocol server for Audius. Perform market research, purchase premium tracks, upload songs, and much more!
AI SOC Security Threat analysis using MCP Server
SearchAPI MCP for Google searches
Model Context Protocol server for ActivityWatch time tracking data





