{"id":50335090,"url":"https://github.com/drrataplan/fonto-docs-mcp","last_synced_at":"2026-06-02T12:00:35.360Z","repository":{"id":360946929,"uuid":"1252364331","full_name":"DrRataplan/fonto-docs-mcp","owner":"DrRataplan","description":"MCP server for Fonto XML documentation — search and fetch API docs directly in Cursor, Claude, and Claude Code","archived":false,"fork":false,"pushed_at":"2026-05-29T13:22:07.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T13:22:48.051Z","etag":null,"topics":["claude","cursor","documentation","fonto","mcp","model-context-protocol","xml"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrRataplan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T12:55:20.000Z","updated_at":"2026-05-29T13:22:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"e227d57b-db12-45b9-af2c-3d7aa821a996","html_url":"https://github.com/DrRataplan/fonto-docs-mcp","commit_stats":null,"previous_names":["drrataplan/fonto-docs-mcp"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/DrRataplan/fonto-docs-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrRataplan%2Ffonto-docs-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrRataplan%2Ffonto-docs-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrRataplan%2Ffonto-docs-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrRataplan%2Ffonto-docs-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrRataplan","download_url":"https://codeload.github.com/DrRataplan/fonto-docs-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrRataplan%2Ffonto-docs-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33820643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","cursor","documentation","fonto","mcp","model-context-protocol","xml"],"created_at":"2026-05-29T13:00:39.283Z","updated_at":"2026-06-02T12:00:35.355Z","avatar_url":"https://github.com/DrRataplan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fonto-docs-mcp\n\n[![Deploy to Cloud Run](https://github.com/DrRataplan/fonto-docs-mcp/actions/workflows/deploy.yml/badge.svg)](https://github.com/DrRataplan/fonto-docs-mcp/actions/workflows/deploy.yml)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nAn MCP server that makes the [Fonto XML documentation](https://documentation.fontoxml.com/) accessible to AI tools like Claude Code, Cursor, and Claude Desktop. **Live at [fonto-docs.elliat.nl](https://fonto-docs.elliat.nl/).**\n\nThe Fonto docs are rendered by a JavaScript SPA, which makes them impossible for AI to read directly. This server fetches the underlying XML and converts it to clean, readable Markdown on demand.\n\n## What is MCP?\n\nMCP (Model Context Protocol) is a standard way to give AI assistants access to external tools. Once you connect this server to your AI tool, it gains access to these tools and resources:\n\n| Tool | What it does |\n|---|---|\n| `search_fonto_docs` | Search by keyword — returns matching pages with titles, descriptions, and slugs |\n| `get_fonto_page` | Fetch the full content of a page by its slug |\n| `list_pages` | List all pages matching a keyword, with full section hierarchy — useful for discovery |\n\n| Resource | What it contains |\n|---|---|\n| `fonto://catalog` | All ~2000 pages with real titles, product grouping, and ancestry paths |\n\nYou can then ask things like *\"How does addDocumentChangeCallback work?\"* and the AI will look it up in the live Fonto docs.\n\n## Connect to your AI tool\n\nThe server is already running at `https://fonto-docs.elliat.nl/mcp` — you just need to point your tool at it.\n\n### Claude Code (CLI)\n\n```bash\nclaude mcp add --transport http fonto-docs https://fonto-docs.elliat.nl/mcp\n```\n\n### Cursor\n\nAdd to `.cursor/mcp.json` in your project (or `~/.cursor/mcp.json` globally):\n\n```json\n{\n  \"mcpServers\": {\n    \"fonto-docs\": {\n      \"type\": \"http\",\n      \"url\": \"https://fonto-docs.elliat.nl/mcp\"\n    }\n  }\n}\n```\n\n### Claude Desktop\n\nAdd to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\Claude\\claude_desktop_config.json` (Windows):\n\n```json\n{\n  \"mcpServers\": {\n    \"fonto-docs\": {\n      \"type\": \"http\",\n      \"url\": \"https://fonto-docs.elliat.nl/mcp\"\n    }\n  }\n}\n```\n\n## Usage examples\n\nOnce connected, ask your AI assistant:\n\n- *\"Search the Fonto docs for documentsManager\"*\n- *\"Get the Fonto docs page for clearundostackfordocument-f0187fade723\"*\n- *\"How does addDocumentChangeCallback work according to the Fonto docs?\"*\n- *\"List all pages in the configure section\"*\n- *\"What upgrade guides are available?\"*\n\n## HTTP API\n\nThe server also exposes a plain HTTP API if you want to use it without MCP:\n\n- `GET /search?q={query}` — search pages by keyword\n- `GET /page/{slug}` — fetch a page as Markdown\n- `GET /catalog` — full page catalog grouped by section; add `?section={keyword}` to filter\n\n## How it works\n\nThe Fonto documentation site stores its content as XML at predictable URLs under `/static/xml/`. This server fetches those XML files directly and converts them to Markdown, bypassing the JavaScript rendering. Page content is never cached — every `get_fonto_page` call goes to `documentation.fontoxml.com` live. The page catalog (used by `list_pages` and `fonto://catalog`) is fetched once from the Fonto search index on first use and held in memory for the lifetime of the process.\n\n## Self-hosting\n\n```bash\nnpm install\nnpm start        # runs on port 8080 by default\nPORT=3000 npm start\n```\n\n## Contributing\n\nPRs welcome. The XML-to-Markdown conversion in `src/fonto.js` handles two formats:\n\n- **DITA guide pages** — `\u003ctopic\u003e`, `\u003cbody\u003e`, `\u003csection\u003e` structure\n- **API reference pages** — custom `\u003ctype\u003e`, `\u003cmembers\u003e`, `\u003cdescription\u003e` structure\n\nIf you find pages that don't convert well, open an issue with the slug.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrrataplan%2Ffonto-docs-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrrataplan%2Ffonto-docs-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrrataplan%2Ffonto-docs-mcp/lists"}