Skip to content
Back to search

any-chat-completions-mcp

MCP Server for using any LLM as a Tool

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/pyroprompts--any-chat-completions-mcp/badge.svg)](/listings/pyroprompts--any-chat-completions-mcp)

HTML

<a href="/listings/pyroprompts--any-chat-completions-mcp"><img src="/api/listings/pyroprompts--any-chat-completions-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

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"
      ],
      "env": {
        "AI_CHAT_KEY": "OPENAI_KEY",
        "AI_CHAT_NAME": "OpenAI",
        "AI_CHAT_MODEL": "gpt-4o",
        "AI_CHAT_BASE_URL": "https://api.openai.com/v1"
      }
    }
  }
}

With these three, you'll see a tool for each in the Claude Desktop Home:

And then you can chat with other LLMs and it shows in chat like this:

Or, configure in [LibreChat](https://www.librechat.ai/) like:

  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'

And it shows in LibreChat:

Installing via Smithery

To install Any OpenAI Compatible API Integrations for Claude Desktop automatically via [Smithery](https://smithery.ai/server/any-chat-completions-mcp-server):

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

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Acknowledgements

- Obviously the modelcontextprotocol and Anthropic team for the MCP Specification and integration into Claude Desktop. [https://modelcontextprotocol.io/introduction](https://modelcontextprotocol.io/introduction) - [PyroPrompts](https://pyroprompts.com?ref=github-any-chat-completions-mcp) for sponsoring this project. Use code `CLAUDEANYCHAT` for 20 free automation credits on Pyroprompts.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 186 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # any-chat-completions-mcp MCP Server
  2. Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.
  3. This implements the Model Context Protocol Server. Learn more: [https://modelcontextprotocol.io](https://modelcontextprotocol.io)
  4. This is a TypeScript-based MCP server that implements an implementation into any OpenAI SDK Compatible Chat Completions API.
  5. It has one tool, `chat` which relays a question to a configured AI Chat Provider.
  6. <a href="https://glama.ai/mcp/servers/nuksdrfb55"><img width="380" height="200" src="https://glama.ai/mcp/servers/nuksdrfb55/badge" /></a>
  7. [![smithery badge](https://smithery.ai/badge/any-chat-completions-mcp-server)](https://smithery.ai/server/any-chat-completions-mcp-server)
  8. ## Development
  9. Install dependencies:
  10. ```bash
  11. npm install
  12. ```
  13. Build the server:
  14. ```bash
  15. npm run build
  16. ```
  17. For development with auto-rebuild:
  18. ```bash
  19. npm run watch
  20. ```
  21. ## Installation
  22. To add OpenAI to Claude Desktop, add the server config:
  23. On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
  24. On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
  25. You can use it via `npx` in your Claude Desktop configuration like this:
  26. ```json
  27. {
  28. "mcpServers": {
  29. "chat-openai": {
  30. "command": "npx",
  31. "args": [
  32. "@pyroprompts/any-chat-completions-mcp"
  33. ],
  34. "env": {
  35. "AI_CHAT_KEY": "OPENAI_KEY",
  36. "AI_CHAT_NAME": "OpenAI",
  37. "AI_CHAT_MODEL": "gpt-4o",
  38. "AI_CHAT_BASE_URL": "https://api.openai.com/v1"
  39. }
  40. }
  41. }
  42. }
  43. ```
  44. Or, if you clone the repo, you can build and use in your Claude Desktop configuration like this:
  45. ```json
  46. {
  47. "mcpServers": {
  48. "chat-openai": {
  49. "command": "node",
  50. "args": [
  51. "/path/to/any-chat-completions-mcp/build/index.js"
  52. ],
  53. "env": {
  54. "AI_CHAT_KEY": "OPENAI_KEY",
  55. "AI_CHAT_NAME": "OpenAI",
  56. "AI_CHAT_MODEL": "gpt-4o",
  57. "AI_CHAT_BASE_URL": "https://api.openai.com/v1"
  58. }
  59. }
  60. }
  61. }
  62. ```
  63. You can add multiple providers by referencing the same MCP server multiple times, but with different env arguments:
  64. ```json
  65. {
  66. "mcpServers": {
  67. "chat-pyroprompts": {
  68. "command": "node",
  69. "args": [
  70. "/path/to/any-chat-completions-mcp/build/index.js"
  71. ],
  72. "env": {
  73. "AI_CHAT_KEY": "PYROPROMPTS_KEY",
  74. "AI_CHAT_NAME": "PyroPrompts",
  75. "AI_CHAT_MODEL": "ash",
  76. "AI_CHAT_BASE_URL": "https://api.pyroprompts.com/openaiv1"
  77. }
  78. },
  79. "chat-perplexity": {
  80. "command": "node",
  81. "args": [
  82. "/path/to/any-chat-completions-mcp/build/index.js"
  83. ],
  84. "env": {
  85. "AI_CHAT_KEY": "PERPLEXITY_KEY",
  86. "AI_CHAT_NAME": "Perplexity",
  87. "AI_CHAT_MODEL": "sonar",
  88. "AI_CHAT_BASE_URL": "https://api.perplexity.ai"
  89. }
  90. },
  91. "chat-openai": {
  92. "command": "node",
  93. "args": [
  94. "/path/to/any-chat-completions-mcp/build/index.js"
  95. ],
  96. "env": {
  97. "AI_CHAT_KEY": "OPENAI_KEY",
  98. "AI_CHAT_NAME": "OpenAI",
  99. "AI_CHAT_MODEL": "gpt-4o",
  100. "AI_CHAT_BASE_URL": "https://api.openai.com/v1"
  101. }
  102. }
  103. }
  104. }
  105. ```
  106. With these three, you'll see a tool for each in the Claude Desktop Home:
  107. ![Claude Desktop Home with Chat Tools](img/claude_desktop_home.png)
  108. And then you can chat with other LLMs and it shows in chat like this:
  109. ![Claude Chat with OpenAI](img/claude_chat_openai.png)
  110. Or, configure in [LibreChat](https://www.librechat.ai/) like:
  111. ```yaml
  112. chat-perplexity:
  113. type: stdio
  114. command: npx
  115. args:
  116. - -y
  117. - @pyroprompts/any-chat-completions-mcp
  118. env:
  119. AI_CHAT_KEY: "pplx-012345679"
  120. AI_CHAT_NAME: Perplexity
  121. AI_CHAT_MODEL: sonar
  122. AI_CHAT_BASE_URL: "https://api.perplexity.ai"
  123. PATH: '/usr/local/bin:/usr/bin:/bin'
  124. ````
  125. And it shows in LibreChat:
  126. ![LibreChat with Perplexity Chat](img/librechat.png)
  127. ### Installing via Smithery
  128. To install Any OpenAI Compatible API Integrations for Claude Desktop automatically via [Smithery](https://smithery.ai/server/any-chat-completions-mcp-server):
  129. ```bash
  130. npx -y @smithery/cli install any-chat-completions-mcp-server --client claude
  131. ```
  132. ### Debugging
  133. Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:
  134. ```bash
  135. npm run inspector
  136. ```
  137. The Inspector will provide a URL to access debugging tools in your browser.
  138. ### Acknowledgements
  139. - Obviously the modelcontextprotocol and Anthropic team for the MCP Specification and integration into Claude Desktop. [https://modelcontextprotocol.io/introduction](https://modelcontextprotocol.io/introduction)
  140. - [PyroPrompts](https://pyroprompts.com?ref=github-any-chat-completions-mcp) for sponsoring this project. Use code `CLAUDEANYCHAT` for 20 free automation credits on Pyroprompts.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.