MCP ExplorerExplorer

Mcp Api

@JoshuaRileyDevon a year ago
4 MIT
FreeCommunity
AI Systems
A Node.js server managing multiple MCP servers with a REST API.

Overview

What is Mcp Api

MCP API is a Node.js server that manages multiple Model Context Protocol (MCP) servers and provides access to their tools through a REST API.

Use cases

Use cases include retrieving tool lists in different formats, executing tool functions programmatically, and integrating MCP tools into larger systems.

How to use

To use MCP API, clone the repository, install dependencies with ‘npm i’, and run the server with ‘npm run dev’. Access the API on port 3005.

Key features

Key features include connecting to multiple MCP servers, exposing server tools via REST API endpoints, providing Swagger documentation at ‘/api-docs’, and normalizing tool names between OpenAI and MCP formats.

Where to use

MCP API can be used in applications that require interaction with multiple MCP servers, such as AI model management, tool integration, and automated workflows.

Content

MCP API

A Node.js server that manages multiple Model Context Protocol (MCP) servers and exposes their tools via a REST API.

Features

  • Connects to multiple MCP servers defined in configuration

  • Exposes server tools via REST API endpoints

  • Swagger documentation at /api-docs

  • Tool name normalization and mapping between OpenAI and MCP formats

Installation

Clone the repository and then run the follow command:

npm i && npm run dev

Rename .env.example file to .env and update the environment variable to be the full local path to your MCP config.json file

Usage

This spins up an ExpressJS server on port 3005

GET /tools/:toolType

Retrieves an array of all tools

Use /tools/mcp for the MCP format or use /tools/openai for the OpenAI format for how a tool function is structured.

POST /callTool

Executes a tool function call.

Request body:

{
    "toolName":"toolname",
    "arguments":{}
}

The output will be the result from the tool

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers