Skip to main content
Glama
POR MCP Server
by Moncky

POR MCP Server

MCP server that lets an LLM query the UK Scouts Policy, Organisation and Rules (POR), including Scottish variations and annexes. On first use it downloads the official POR PDF and caches the extracted text in memory, then exposes a single MCP tool: search_por.

Prerequisites: Docker for Claude Desktop; uv for Claude Code and local development.

Install with Claude Code

Add the server directly from GitHub — no manual cloning required:

claude mcp add por -- uvx --from git+https://github.com/Moncky/por-mcp-server por-mcp-server

This fetches the package and registers it as an MCP server called por. Verify with:

claude mcp list

To pin a specific release or commit, append @<tag-or-sha>:

claude mcp add por -- uvx --from "git+https://github.com/Moncky/por-mcp-server@v0.1.0" por-mcp-server

Related MCP server: PDF RAG MCP Server

Install with Claude Desktop

Claude Desktop runs the server via a local Docker container.

1. Clone the repo and build the image:

git clone https://github.com/Moncky/por-mcp-server.git
cd por-mcp-server
docker build -t por-mcp-server:latest .

2. Open your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

3. Add the following entry (create the mcpServers object if it doesn't exist):

{
  "mcpServers": {
    "por": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "por-mcp-server:latest"
      ]
    }
  }
}

4. Restart Claude Desktop. You should see por listed under connected MCP servers.

To pick up changes after a git pull, rebuild the image with the same docker build command and restart Claude Desktop.

Build and run (local clone / uv)

cd por-mcp-server
uv run por_server.py

The server speaks MCP over stdio, so you normally do not run it directly. To wire it up with Claude Code after cloning:

claude mcp add por -- uv run --directory /absolute/path/to/por-mcp-server por_server.py

Test with MCP Inspector

npx @modelcontextprotocol/inspector uv run por_server.py

Tool: search_por

  • Name: search_por

  • Description: Free-text search over UK Scouts POR (including annexes).

  • Input schema:

    • query (string, required) – search phrase.

  • Behaviour:

    • On first call, downloads the official POR PDF (~7MB) and extracts text from all 429 pages (~1.5s).

    • Performs a case-insensitive substring search over the cached text.

    • Returns up to 10 matching pages with snippets and PDF page numbers so the LLM can quote and reason about POR.

Example queries

Once the server is connected to your MCP client, you can ask your LLM questions like:

  • "What are the rules around overnight camping with Scouts?" — the LLM will call search_por with a query like "camping" or "nights away" and cite the relevant POR chapters.

  • "Can a Beaver Scout section accept a 5-year-old?" — triggers a search for age-related rules and membership requirements.

  • "What safeguarding training is required for adult volunteers?" — searches for DBS, safety, and training policies.

  • "Are there specific rules for water activities in Scotland?" — finds Scottish POR variations and water activity annexes.

  • "What is the minimum adult-to-young-person ratio for a hillwalking expedition?" — searches ratios, adventurous activities, and supervision rules.

The LLM handles choosing the right search terms, interpreting the results, and quoting POR back to you with page references — you just ask your question in plain English.

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to search and query PDF documents through a local RAG system with vector embeddings. Provides semantic document search capabilities while keeping all data stored locally without external dependencies.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables intelligent search and question-answering over PDF documents using semantic similarity and keyword search. Supports OCR for scanned PDFs, persistent vector storage with ChromaDB, and maintains source tracking with page numbers.
      6
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables local indexing and semantic search of PDF documents (like AGLC4 style guide) with OCR support, allowing LLM tools to query PDF content and retrieve relevant text snippets with context.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only MCP tools for hybrid semantic and keyword search over locally indexed PDF documentation, with citations and context retrieval for LLM agents.
      -