MCP-Host-CLI
by liujilongObject
MCP-Host-CLI is a Node.js-based Model Context Protocol (MCP) host application for connecting and managing multiple MCP servers. It provides a unified HTTP API to interact with multiple MCP servers, access tools, and resources.
Last updated: N/A
What is MCP-Host-CLI?
MCP-Host-CLI is a Node.js application that acts as a host for multiple MCP servers. It provides a centralized interface for clients to interact with these servers through HTTP API calls.
How to use MCP-Host-CLI?
- Install via npm:
npx mcp-host-cli
or clone the repository and build locally. 2. Configure MCP servers inmcp_servers.config.json
. 3. Run the application. 4. Use the provided HTTP API endpoints to access tools and resources from the connected MCP servers.
Key features of MCP-Host-CLI
Connects and manages multiple MCP servers
Supports STDIO and SSE transport
Provides a unified HTTP API
Manages server configurations via JSON file
Use cases of MCP-Host-CLI
Testing MCP servers
Running MCP servers
Centralized management of multiple MCP servers
Providing a unified interface for accessing tools and resources
FAQ from MCP-Host-CLI
What is the default port the server runs on?
What is the default port the server runs on?
The server defaults to port 17925.
What is the configuration file name?
What is the configuration file name?
The configuration file is named mcp_servers.config.json
and should be placed in the current working directory.
What are the environment requirements for STDIO MCP Servers?
What are the environment requirements for STDIO MCP Servers?
Connecting to STDIO MCP servers requires npx
or uvx
. npx
depends on Node.js (>=18), and uvx
depends on Python (uv).
How do I update the server connections without restarting the host?
How do I update the server connections without restarting the host?
Call the /api/connections/update
API endpoint. The Host will then read the configuration file and update the server connections.
What license is MCP-Host-CLI released under?
What license is MCP-Host-CLI released under?
MCP-Host-CLI is released under the MIT license.