MCP server mixin for Moleculer API Gateway (moleculer-web)
To install the package, use the following command:
npm i @moleculer/mcp-server moleculer-web
import ApiGateway from "moleculer-web";
import { McpServerMixin } from "../../src/index.js";
// api.service.js
export default {
name: "api",
mixins: [ApiGateway, McpServerMixin()],
settings: {
// Other API gateway settings...
}
};
The API gateway with MCP server will be available at: http://localhost:3000/mcp
{
"servers": {
"moleculer": {
"url": "http://localhost:3000/mcp",
"type": "http"
}
}
}
claude mcp add --transport http moleculer http://127.0.0.1:3000/mcp
The project is available under the MIT license.
Copyright (c) 2025 MoleculerJS