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
      Enables integration of Perplexity's AI API with LLMs, delivering advanced chat completion by utilizing specialized prompt templates for tasks like technical documentation, code review, and API documentation.
      Last updated -
      1
      94
      8
      JavaScript
      MIT License
      • Linux
    • A
      security
      F
      license
      A
      quality
      A Node.js implementation that enables Claude to interact with Perplexity AI's language models through Anthropic's Model Context Protocol, providing tools for advanced chat completions and quick queries.
      Last updated -
      2
      6
      TypeScript
      • Apple
      • Linux
    • -
      security
      A
      license
      -
      quality
      MCP server that enables Claude to request chat completions with citations from the Perplexity API.
      Last updated -
      MIT License
      • Apple
    • -
      security
      F
      license
      -
      quality
      MCP ChatGPT Responses connects Claude to ChatGPT through two essential tools: standard queries for AI-to-AI conversations and web-enabled requests for current information. It uses OpenAI's Responses API to maintain conversation state automatically.
      Last updated -
      5
      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