any-chat-completions-mcp logo

Any Chat Completions MCP

by pyroprompts

13 forks
80 stars
Free

What is any-chat-completions-mcp

The any-chat-completions-mcp is a versatile server developed by PyroPrompts. It serves as an integration point for Claude, a popular AI assistant, with any OpenAI SDK Compatible Chat Completion API. This means you can connect Claude to a variety of AI chat providers such as OpenAI, Perplexity, Groq, xAI, and PyroPrompts, allowing it to leverage different AI models for enhanced chat capabilities. The server is built using TypeScript and implements the Model Context Protocol (MCP), which is a universal standard for AI systems to securely access and interact with external data, tools, and prompts.

How to Use any-chat-completions-mcp

To get started with the any-chat-completions-mcp, follow these steps:

  1. Installation:

    • First, ensure you have Node.js and npm installed on your system.
    • Install the necessary dependencies by running the command: npm install.
    • Build the server using: npm run build.
    • For continuous development with auto-rebuild, use: npm run watch.
  2. Configuration:

    • To integrate with Claude Desktop, you need to configure the server settings in the claude_desktop_config.json file.

    • This file can be found in the following locations:

      • On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
      • On Windows: %APPDATA%/Claude/claude_desktop_config.json
    • Add the server configuration with the necessary environment variables like AI_CHAT_KEY, AI_CHAT_NAME, AI_CHAT_MODEL, and AI_CHAT_BASE_URL to connect to your desired AI chat provider.

  3. Multiple Providers:

    • You can configure multiple AI chat providers by referencing the MCP server multiple times in the configuration file with different environment settings.

Key Features of any-chat-completions-mcp

  • Integration with Multiple AI Providers: Seamlessly connect Claude with a variety of AI chat providers, including OpenAI, Perplexity, and PyroPrompts, allowing you to choose the best model for your needs.

  • Model Context Protocol (MCP): Utilizes the MCP standard, which ensures secure and efficient communication between AI systems and external data sources, tools, and prompts.

  • TypeScript-based Server: Built with TypeScript for robust and reliable performance, ensuring the server is both scalable and maintainable.

  • Development and Debugging Tools: The server provides tools for easy development and debugging, including an auto-rebuild feature and a dedicated inspector tool for monitoring server communications.

  • Flexible Configuration: Easily configure and manage multiple chat providers within a single setup, facilitating quick switches between different AI models and configurations.

The any-chat-completions-mcp is designed to enhance the capabilities of AI assistants like Claude by providing a flexible and secure way to access a wide range of AI chat models, making it a valuable tool for developers and AI enthusiasts alike.

How to Use

To use the any-chat-completions-mcp, follow these steps:

  1. Visit https://github.com/pyropr...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using any-chat-completions-mcp capabilities within your Claude conversations

Additional Information

Created

March 12, 2025

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More