Customized MCP Server
Integrates with OpenAI's API to provide LLM capabilities that can be queried through the MCP server, allowing for tools like weather information retrieval to be called via the client interface.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Customized MCP Serverwhat's the weather like in Tokyo today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.txtRelated MCP server: mcp-server
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.pyExample 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that integrates with Discord to provide AI-powered features.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
An MCP server for weather information by @kulybaba
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server built with the mcp-framework to provide weather-related tools and data to AI clients. It enables integration of weather capabilities and custom tools into the MCP ecosystem for use with platforms like Claude Desktop.9 npm-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides weather and web search tools, orchestrated by a LangGraph agent with OpenAI for natural language interaction.8-
- FlicenseNot gradedqualityDmaintenanceA proof-of-concept MCP server that provides weather information using the Open-Meteo API, with tools for greeting, getting weather by coordinates, and by location name.-
- AlicenseAqualityCmaintenanceAn MCP server that exposes geocoding, current weather, and multi-day forecast as typed, structured tools for AI agents via the Open-Meteo API.3MIT