Customized MCP Server

by MorvanZhou

Integrations

  • 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.

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.txt

Uso

  1. Configure su clave API de OpenAI como una variable de entorno:
    export OPENAI_API_KEY="your-api-key"
  2. Inicie el servidor MCP:
    python server.py
  3. Utilice el cliente para interactuar con el servidor:
    python client.py
  4. Alternativamente, 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.py

Ejemplo 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.0
  • mcp[cli]==1.6.0

Licencia

Este proyecto está licenciado bajo la licencia MIT.

-
security - not tested
A
license - permissive license
-
quality - not tested

Un servidor que integra la biblioteca MCP con la API de OpenAI, permitiendo a los usuarios interactuar con diversas herramientas, como la herramienta meteorológica, a través de consultas en lenguaje natural.

  1. Requisitos
    1. Uso
      1. Ejemplo
        1. Consultar la herramienta meteorológica
      2. Dependencias
        1. Licencia

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol (MCP) server that lets you seamlessly use OpenAI's models right from Claude.
            Last updated -
            1
            24
            28
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            A simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol.
            Last updated -
            26
            Python
            MIT License
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server implementation that enables connection between OpenAI APIs and MCP clients for coding assistance with features like CLI interaction, web API integration, and tool-based architecture.
            Last updated -
            9
            Python
            • Linux
            • Apple
          • A
            security
            A
            license
            A
            quality
            An MCP server that provides tools for interacting with Vercel API, enabling management of deployments, DNS records, domains, projects, and environment variables through natural language.
            Last updated -
            7
            45
            3
            TypeScript
            MIT License

          View all related MCP servers

          ID: b4nj5l9ncf