A simple Node.js API using Express that connects to multiple MCP (Model Context Protocol) servers. Built with hexagonal architecture for clean separation of concerns.
- Connects to various MCP servers
- Exposes REST endpoints for tools, resources, and prompts
- Uses ports and adapters pattern
- Includes Swagger docs for easy testing
First, install the dependencies:
npm installThen run the server:
npm startThe API will be available at http://localhost:3000, and you can check the docs at http://localhost:3000/api-docs.
- GET /servers - lists available servers
- GET /servers/{server}/tools - tools from a server
- POST /servers/{server}/tools/{toolName} - call a tool
- And more for resources and prompts
Configure your MCP servers in src/infrastructure/config/mcpServers.js