Skip to main content
Glama

Customized MCP Server

by MorvanZhou

カスタマイズされたMCPプロジェクト

このプロジェクトは、CLI サポート付きのmcpライブラリを活用し、OpenAI の API と統合します。

要件

プロジェクトを実行する前に、必要な依存関係を必ずインストールしてください。

pip install -r requirements.txt

使用法

  1. OpenAI API キーを環境変数として設定します。
    export OPENAI_API_KEY="your-api-key"
  2. MCP サーバーを起動します。
    python server.py
  3. クライアントを使用してサーバーと対話します。
    python client.py
  4. あるいは、オーケストレーターを使用して LLM とツールをクエリします。
    python main.py

天気ツールのクエリ

クライアントを実行し、 get_weatherツールを呼び出します。

python client.py

やり取りの例:

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: 北京的天气是晴天

依存関係

  • openai==1.70.0
  • mcp[cli]==1.6.0

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

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

MCP ライブラリを OpenAI の API と統合し、ユーザーが自然言語クエリを通じて天気ツールなどのさまざまなツールと対話できるようにするサーバー。

  1. 要件
    1. 使用法
        1. 天気ツールのクエリ
      1. 依存関係
        1. ライセンス

          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 -
            28
            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
            65
            3
            TypeScript
            MIT License

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/MorvanZhou/customized_mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server