Get the FREE Ultimate OpenClaw Setup Guide →

mcp -rag

MCP-Server for Mpx Docs RAG

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio mpx-ecology-mcp-server-rag npx -y @mpxjs/mcp-server-rag

How to use

This MCP server provides a retrieval-augmented generation (RAG) backend tailored for Mpx Docs. It can be loaded directly via npm package (recommended) or run from a local build for debugging. In VS Code, configure the MCP server as a stdio-based server so the MCP client can communicate over standard input/output. When using the npm package, the server is pulled and started on demand, exposing capabilities to fetch and combine documentation content with a generative model to answer questions or generate context-aware responses. You can switch to a local development version by pointing the server to a built dist/index.js, which is useful for debugging custom changes before publishing.

How to install

Prerequisites:

  • Node.js and npm (or npm-compatible runtime) installed on your machine.

Option A: Use the npm package (recommended)

  1. Ensure Node.js and npm are installed.

  2. In your project or environment, run:

    npm install -g @mpxjs/mcp-server-rag

  3. Start or integrate the MCP server via the npx command as shown in the config below, which will fetch the package on demand:

    npx -y @mpxjs/mcp-server-rag

Option B: Run from local source (development)

  1. Clone the repository containing mcp-server-rag and install dependencies:

    git clone https://github.com/your-org/mpx-server-rag.git cd mpx-server-rag npm install

  2. Build or compile the project if required (follow the project’s README, often:

    npm run build

  3. Run the server directly from the built file, for example:

    node dist/index.js

  4. In your VS Code MCP settings, point to the local server executable path as shown in the example below.

Additional notes

Tips:

  • If you rely on the npm package, ensure your environment has network access to fetch the package when starting the server.
  • When debugging locally, the dist/index.js path must exist; use the project’s build script to generate it.
  • In VS Code settings, keep the stdio type configuration; the server will communicate over standard IO with the MCP client.
  • If you encounter port or IO issues, verify there are no conflicting processes using the same IO streams and check the server logs for startup errors.
  • Environment variables (if any) can include API keys for underlying models or document stores; add them under env in your development environment as needed.

Related MCP Servers

Sponsor this space

Reach thousands of developers