使用说明
MCP Subregistry
This project contains two components related to the Model Context Protocol (MCP): an MCP server and a UI server for browsing MCP servers.
Components
mcp-server
This is a sample MCP server built with the @modelcontextprotocol/sdk. It registers a single tool, search_mcp_servers, which allows searching for MCP servers on the public registry (registry.modelcontextprotocol.io). The server communicates over stdio.
ui-server
This is a web server built with Express.js. It provides a user interface to browse, search, and view details of MCP servers listed on the public registry.
Getting Started
Prerequisites
- Node.js
Installation & Running
For each component (mcp-server and ui-server):
-
Navigate to the component's directory:
cd <component-directory> -
Install dependencies:
npm install -
For
mcp-server: Build the server:npm run buildRun the server:
node build/index.js -
For
ui-server: Start the server:node server.jsThe UI will be available at
http://localhost:3000.
