Docs

Docs

Enable documentation access for the AI agent, supporting llms.txt and other remote or local files.

7
Stars
0
Forks
0
Releases

Overview

DocsMCP is a Model Context Protocol (MCP) server that lets large language models access and query documentation configured from either local files or remote URLs. It exposes two primary tools: getDocumentationSources, which lists all configured sources, and getDocumentation, which fetches and parses documentation from a specified URL or file path. The server can be integrated into Cursor projects via a .cursor/mcp.json configuration, running as an npm-based command (npx docsmcp) with a --source parameter. It can also be wired into VS Code through a .vscode/mcp.json setup using stdio and the same arguments. These configurations enable Cursor AI or MCP-supporting VS Code extensions to automatically use the documentation server when a project is opened or edited. The design emphasizes simple source specification, including handling spaces in source strings by wrapping the entire argument in quotes, as shown in examples.

Details

Owner
da1z
Language
JavaScript
License
Updated
2025-12-07

Features

getDocumentationSources

Lists all available documentation sources that have been configured.

getDocumentation

Fetches and parses documentation from a given URL or local file path.

Local and remote sources

Supports documentation sources from local files or remote URLs.

Cursor integration

Configurable via .cursor/mcp.json to automatically enable DocsMCP in Cursor projects.

VS Code integration

Configurable via .vscode/mcp.json to enable MCP-based documentation access in VS Code.

MCP-based communication

Uses MCP to enable communication between LLMs and documentation sources.

Documentation parsing

Fetches and parses documentation content for querying by LLMs.

Quoted source handling

Supports quoting of space-containing source strings in command arguments.

Audience

LLM developersEnable LLMs to access and query documentation sources via MCP.
Cursor usersIntegrate DocsMCP into Cursor projects for automatic documentation access and querying.
VS Code usersEnable MCP-based documentation access in VS Code extensions for seamless querying.

Tags

MCPdocumentationLLMsDocsMCPCursorVS Codelocalremotefetchparse