Skip to main content
Glama

any-chat-completions-mcp

by pyroprompts

any-chat-completions-mcp MCP サーバー

Claude を、OpenAI SDK と互換性のあるチャット完了 API (OpenAI、Perplexity、Groq、xAI、PyroPrompts など) と統合します。

これはモデルコンテキストプロトコルサーバーを実装します。詳細はこちら: https://modelcontextprotocol.io

これは、OpenAI SDK 互換の Chat Completions API に実装を実装する TypeScript ベースの MCP サーバーです。

構成された AI チャット プロバイダーに質問を中継するchatというツールが 1 つあります。

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

OpenAI を Claude Desktop に追加するには、サーバー設定を追加します。

MacOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

次のように、Claude Desktop 構成でnpx経由で使用できます。

{ "mcpServers": { "chat-openai": { "command": "npx", "args": [ "@pyroprompts/any-chat-completions-mcp" ], "env": { "AI_CHAT_KEY": "OPENAI_KEY", "AI_CHAT_NAME": "OpenAI", "AI_CHAT_MODEL": "gpt-4o", "AI_CHAT_BASE_URL": "https://api.openai.com/v1" } } } }

または、リポジトリをクローンした場合は、次のように Claude Desktop 構成でビルドして使用できます。

{ "mcpServers": { "chat-openai": { "command": "node", "args": [ "/path/to/any-chat-completions-mcp/build/index.js" ], "env": { "AI_CHAT_KEY": "OPENAI_KEY", "AI_CHAT_NAME": "OpenAI", "AI_CHAT_MODEL": "gpt-4o", "AI_CHAT_BASE_URL": "https://api.openai.com/v1" } } } }

同じ MCP サーバーを複数回参照し、異なる env 引数を使用することで、複数のプロバイダーを追加できます。

{ "mcpServers": { "chat-pyroprompts": { "command": "node", "args": [ "/path/to/any-chat-completions-mcp/build/index.js" ], "env": { "AI_CHAT_KEY": "PYROPROMPTS_KEY", "AI_CHAT_NAME": "PyroPrompts", "AI_CHAT_MODEL": "ash", "AI_CHAT_BASE_URL": "https://api.pyroprompts.com/openaiv1" } }, "chat-perplexity": { "command": "node", "args": [ "/path/to/any-chat-completions-mcp/build/index.js" ], "env": { "AI_CHAT_KEY": "PERPLEXITY_KEY", "AI_CHAT_NAME": "Perplexity", "AI_CHAT_MODEL": "sonar", "AI_CHAT_BASE_URL": "https://api.perplexity.ai" } }, "chat-openai": { "command": "node", "args": [ "/path/to/any-chat-completions-mcp/build/index.js" ], "env": { "AI_CHAT_KEY": "OPENAI_KEY", "AI_CHAT_NAME": "OpenAI", "AI_CHAT_MODEL": "gpt-4o", "AI_CHAT_BASE_URL": "https://api.openai.com/v1" } } } }

これら 3 つについては、Claude デスクトップ ホームにそれぞれのツールが表示されます。

チャットツールを備えたClaudeデスクトップホーム

そして、他の LLM とチャットすることができ、チャットには次のように表示されます。

クロード・チャットとOpenAI

または、 LibreChatで次のように設定します。

chat-perplexity: type: stdio command: npx args: - -y - @pyroprompts/any-chat-completions-mcp env: AI_CHAT_KEY: "pplx-012345679" AI_CHAT_NAME: Perplexity AI_CHAT_MODEL: sonar AI_CHAT_BASE_URL: "https://api.perplexity.ai" PATH: '/usr/local/bin:/usr/bin:/bin'

そしてそれはLibreChatにも表れています:

Perplexity Chatを備えたLibreChat

Smithery経由でインストール

Smithery経由で Claude Desktop 用の OpenAI 互換 API 統合を自動的にインストールするには:

npx -y @smithery/cli install any-chat-completions-mcp-server --client claude

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

謝辞

  • MCP 仕様と Claude Desktop への統合を担当したのは、もちろん modelcontextprotocol と Anthropic チームです。https ://modelcontextprotocol.io/introduction
  • このプロジェクトをスポンサーいただいたPyroPrompts様。コードCLAUDEANYCHATをご利用いただくと、Pyropromptsで20クレジット分の自動化クレジットを無料でご利用いただけます。
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Claude を、OpenAI SDK と互換性のあるチャット完了 API (OpenAI、Perplexity、Groq、xAI、PyroPrompts など) と統合します。

  1. 発達
    1. インストール
      1. Smithery経由でインストール
      2. デバッグ
      3. 謝辞

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      Connects Claude to Portkey's API for managing AI configurations, workspaces, analytics, and user access, providing comprehensive control over API usage and settings.
      Last updated -
      9
      TypeScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      Enables integration with OpenAI models through the MCP protocol, supporting concise and detailed responses for use with Claude Desktop.
      Last updated -
      1
      2
      Python
      MIT License
      • Apple
      • Linux
    • -
      security
      F
      license
      -
      quality
      An integration tool that connects Claude AI with Odoo database, allowing users to explore Odoo models, search data, and create reports through natural language commands.
      Last updated -
      Python
    • -
      security
      F
      license
      -
      quality
      So I tried out this cool tool I saw in a LinkedIn post https://openapitools.com All you need is your API schema (OpenAPI/Swagger), and it automatically generates an MCP schema for you. You can then drop it straight into Claude Desktop (or Cursor, LangChain, etc.) and instantly start chatting with
      Last updated -
      1
      Python

    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/pyroprompts/any-chat-completions-mcp'

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