MCP-Bridge logo

MCP Bridge

by SecretiveShell

58 forks
476 stars
Free

What is MCP-Bridge

MCP-Bridge is an innovative server application developed by SecretiveShell, designed to bridge the gap between the OpenAI API and Model Context Protocol (MCP) tools. By serving as a communication link, MCP-Bridge allows developers to seamlessly integrate MCP functionalities via the OpenAI API interface. This integration empowers AI systems to access a wide range of tools and real-time data through a universal standard, enhancing the capabilities of AI assistants to interact with external data sources securely and effectively.

How to Use MCP-Bridge

Using MCP-Bridge involves setting it up to interact with MCP tools through the OpenAI API. The recommended way to install MCP-Bridge is via Docker, which simplifies deployment and management.

Docker Installation Steps:

  1. Clone the Repository: Obtain the MCP-Bridge repository to your local system.
  2. Configure Docker: Edit the compose.yml file to include the necessary configurations, such as the config.json file, which outlines the server and client settings.
  3. Deploy the Service: Run docker-compose up --build -d to start the MCP-Bridge service.

Alternatively, users can opt for manual installation by setting up the environment dependencies, creating a config.json file, and running the application directly.

Once installed, users can interact with MCP-Bridge through the OpenAI API, which supports various endpoints for managing MCP tools and leveraging their functionalities.

Key Features of MCP-Bridge

MCP-Bridge offers a robust feature set designed to simplify the integration and utilization of MCP tools:

  • Chat Completions: Supports both streaming and non-streaming chat completions, allowing dynamic interactions with MCP tools.
  • Tool Integration: Facilitates the use of MCP tools through a universal API interface, eliminating the need for explicit MCP support in client applications.
  • SSE Bridge: Provides a Server-Sent Events (SSE) bridge for external clients, enabling seamless communication with MCP servers.
  • Configurable API Key Authentication: Enhances security by allowing API key authentication to restrict access to authorized users.
  • Flexible Configuration: Users can easily modify the config.json file to add new MCP servers, customize sampling parameters, and adjust network settings.
  • Comprehensive REST API: Exposes a range of REST API endpoints to interact with MCP primitives, ensuring a smooth and functional integration process.

These features make MCP-Bridge a powerful tool for developers looking to harness the capabilities of MCP within the OpenAI ecosystem, providing a scalable and secure solution for AI application development.

How to Use

To use the MCP-Bridge, follow these steps:

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

Additional Information

Created

November 30, 2024

Start building your own MCP Server

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

Learn More