PA

pyroprompts/any-chat-completions-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

166 stars 32 forks 품질 67 트렌드 0MIT

pyroprompts/any-chat-completions-mcp는 https://github.com/pyroprompts/any-chat-completions-mcp.에서 가져온 MCP 서버 후보입니다.

개요

pyroprompts/any-chat-completions-mcp는 https://github.com/pyroprompts/any-chat-completions-mcp.에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

Claude를 OpenAI, Perplexity, Groq, xAI, PyroPrompts 등 모든 OpenAI SDK 호환 채팅 완료 API와 통합하세요.

이 도구는 모델 컨텍스트 프로토콜 서버를 구현합니다. 더 알아보기: https://modelcontextprotocol.io

이 서버는 TypeScript 기반 MCP 서버로, OpenAI SDK 호환 채팅 완성 API에 구현을 구현합니다.

이 시스템에는 chat라는 하나의 도구가 있는데, 이 도구는 질문을 구성된 AI 채팅 제공자에게 전달합니다.

개발

의존성 설치:

서버 구축하기:

자동 재조립 개발용:

설치

OpenAI를 Claude Desktop에 추가하려면 서버 설정을 추가하세요:

MacOS에서: ~/Library/Application Support/Claude/claude_desktop_config.json

윈도우에서: %APPDATA%/Claude/claude_desktop_config.json

Claude Desktop 설정에서 npx를 통해 다음과 같이 사용할 수 있습니다:

또는 저장소를 복제하면 Claude Desktop 설정에서 다음과 같이 빌드하고 사용할 수 있습니다:

동일한 MCP 서버를 여러 번 참조하되 다른 환경 인수로 여러 공급자를 추가할 수 있습니다:

이 세 가지 기능을 통해 Claude Desktop Home에서 각각의 도구를 볼 수 있습니다:

그리고 다른 LLM과 채팅할 수 있는데, 채팅에는 이렇게 표시됩니다:

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

any-chat-completions-mcp MCP Server

Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.

This implements the Model Context Protocol Server. Learn more: https://modelcontextprotocol.io

This is a TypeScript-based MCP server that implements an implementation into any OpenAI SDK Compatible Chat Completions API.

It has one tool, chat which relays a question to a configured AI Chat Provider.

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To add OpenAI to Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

You can use it via npx in your Claude Desktop configuration like this:

{
  "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"
      }
    }
  }
}

Or, if you clone the repo, you can build and use in your Claude Desktop configuration like this:


{
  "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"
      }
    }
  }
}

You can add multiple providers by referencing the same MCP server multiple times, but with different env arguments:


{
  "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"
GitHub에서 전체 README 보기

설치

npx @pyroprompts/any-chat-completions-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "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" } } } }