Get the FREE Ultimate OpenClaw Setup Guide →

protocontext

Deterministic knowledge layer for RAG systems. Open standard + search engine + semantic retrieval for AI-readable web content.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio protocontext-protocontext node mcp-server/index.js \
  --env PROTOCONTEXT_BASE_URL="Base URL for the ProtoContext API (e.g., http://localhost:8000)"

How to use

ProtoContext provides an MCP-compatible server that exposes a deterministic knowledge layer API for AI agents. The MCP server focuses on structured context.txt content and a search/indexing layer, enabling agents to query sites, submit domains for indexing, and perform multi-query searches. With the provided endpoints, agents can rapidly retrieve structured information, get sections for a domain, and track index health and stats. Use the server to connect AI workflows to ProtoContext’s deterministic path, avoiding heavy reliance on unstructured scraping when exact schema-driven answers are sufficient.

How to install

Prerequisites:

  • Node.js (LTS) installed on your host
  • Git installed

Installation steps:

  1. Clone the repository: git clone https://github.com/your-org/protocontext.git
  2. Navigate to the mcp-server directory: cd protocontext/mcp-server
  3. Install dependencies: npm install
  4. Start the MCP server: node index.js

Optional configuration:

  • Create a .env file or set environment variables as needed (e.g., PORT, BASE_URL).
  • Adjust any auth tokens or rate limits as required by your deployment environment.

Additional notes

Tips:

  • Ensure the MCP server has network access to any domain you submit for indexing, especially if you rely on external context.txt sources.
  • Use the /health and /stats endpoints to monitor server status.
  • If you encounter module resolution issues, re-run npm install in the mcp-server directory.

Common issues:

  • Port conflicts: pick an unused port or configure PORT accordingly.
  • Missing context.txt: if no structured context.txt is available for a domain, the engine may fall back to scraping; ensure your domains publish context.txt if you want deterministic retrieval.

Environment variables to consider:

  • PROTOCONTEXT_BASE_URL: Base URL for serving or contacting the ProtoContext API.
  • X_PROTO_TOKEN: (If enabled) token required for protected endpoints.

Related MCP Servers

Sponsor this space

Reach thousands of developers