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.
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:
Usage
- Configure your OpenAI API key as an environment variable:
- Start the MCP server:
- Use the client to interact with the server:
- Alternatively, use the orchestrator to query the LLM and tools:
Example
Querying the Weather Tool
Run the client and call the get_weather
tool:
Example interaction:
Dependencies
openai==1.70.0
mcp[cli]==1.6.0
License
This project is licensed under the MIT License.
This server cannot be installed
A server that integrates the MCP library with OpenAI's API, allowing users to interact with various tools, such as the weather tool, through natural language queries.
Related MCP Servers
- -securityFlicense-qualityAn OpenAI API-based MCP server that provides deep thinking and analysis capabilities, integrating with AI editor models to deliver comprehensive insights and practical solutions.Last updated -
- -securityAlicense-qualityAn MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.Last updated -13MIT License
- -securityFlicense-qualityAn auto-generated MCP server that enables interaction with the OpenAI API, allowing users to access OpenAI's models and capabilities through the Multi-Agent Conversation Protocol.Last updated -
- -securityFlicense-qualityA Model Context Protocol (MCP) server that enables AI assistants and LLMs to access real-time weather data and forecasts by connecting to the OpenWeatherMap API.Last updated -