Customized MCP Server
Proyecto MCP personalizado
Este proyecto aprovecha la biblioteca mcp con soporte CLI y se integra con la API de OpenAI.
Requisitos
Asegúrese de instalar las dependencias necesarias antes de ejecutar el proyecto:
pip install -r requirements.txtRelated MCP server: mcp-server
Uso
Configure su clave API de OpenAI como una variable de entorno:
export OPENAI_API_KEY="your-api-key"Inicie el servidor MCP:
python server.pyUtilice el cliente para interactuar con el servidor:
python client.pyAlternativamente, utilice el orquestador para consultar el LLM y las herramientas:
python main.py
Ejemplo
Consultar la herramienta meteorológica
Ejecute el cliente y llame a la herramienta get_weather :
python client.pyEjemplo de interacción:
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: 北京的天气是晴天Dependencias
openai==1.70.0mcp[cli]==1.6.0
Licencia
Este proyecto está licenciado bajo la licencia MIT.
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