Back to Home
CARTE-Toronto icon

alliance-docs-mcp

Verified Safe

by CARTE-Toronto

Overview

Serves Digital Research Alliance of Canada's technical documentation via a Model Context Protocol (MCP) server, offering search, categorization, related page discovery, and LLM-optimized content access.

Installation

Run Command
uv run python -m alliance_docs_mcp.server

Environment Variables

  • MEDIAWIKI_API_URL
  • DOCS_DIR
  • USER_AGENT
  • SEARCH_INDEX_DIR
  • DISABLE_SEARCH_INDEX
  • RELATED_INDEX_DIR
  • RELATED_MODEL_NAME
  • RELATED_BACKEND
  • DISABLE_RELATED_INDEX
  • DISABLE_STRIP_HTML

Security Notes

The project demonstrates good security practices, including explicit path sanitization in `storage.py` (`_title_to_filename`, `_resolve_page_path`) and leveraging established libraries like `BeautifulSoup` for HTML stripping during conversion to prevent XSS. No `eval` or obvious hardcoded secrets are present in the provided code; sensitive configurations like API URLs use environment variables with sensible defaults. The use of `requests` with a retry strategy for external API calls and `FastMCP` for serving indicates robust network handling. Potential security considerations include the inherent supply chain risk of downloading external `sentence-transformer` models for related-page embeddings (though a default well-known model, `all-MiniLM-L6-v2`, is used), and potential for high resource consumption from complex search queries if not externally rate-limited, which would typically be handled at an infrastructure level.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2026-01-18

Tags

documentationtechnical-docsknowledge-baseMCPAIembeddingssearchMediaWikiHPCFastMCPPython