Package Documentation MCP Server
An MCP server that provides LLMs with efficient access to package documentation across multiple programming languages
Overview
MCP Package Documentation is an MCP (Model Context Protocol) server designed to provide large language models (LLMs) with efficient access to package documentation across various programming languages.
To use the MCP Package Documentation server, install it via npx and add the server configuration to your MCP settings. You can interact with it through specific functions to fetch documentation for Go, Python, and NPM packages.
- Multi-language support: Access documentation for Go, Python, and NPM packages. - Smart documentation parsing: Offers structured output with descriptions, usage, and examples, while avoiding context overload. - Performance optimised: Features built-in caching, efficient parsing, and a minimal memory footprint.
- Quickly fetching Go package documentation during development.
- Accessing Python library documentation for function references.
- Retrieving NPM package information effectively for web development.
Add to your AI client
Use these steps to connect Package Documentation MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-package-docs-sammcj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-package-docs-sammcj"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-package-docs-sammcj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-package-docs-sammcj"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-package-docs-sammcj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-package-docs-sammcj"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-package-docs-sammcj": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-package-docs-sammcj"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-package-docs-sammcj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-package-docs-sammcj"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-package-docs-sammcj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-package-docs-sammcj"
]
}
}
}FAQ
What programming languages does MCP Package Documentation support?
MCP Package Documentation supports Go, Python, and NPM packages.
How do I install MCP Package Documentation?
You can install it using the command `npx -y mcp-package-docs`.
What are the system requirements?
The server requires Node.js >= 20, Go for Go package documentation, Python 3 for Python package documentation, and an internet connection for accessing NPM package documentation.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":506,"uuid":"8b148682-b66a-4096-a622-0d36985b9a1b","name":"mcp-package-docs","title":"Package Documentation MCP Server","description":"An MCP server that provides LLMs with efficient access to package documentation across multiple programming languages","avatar_url":"https://avatars.githubusercontent.com/u/862951?v=4","created_at":"2024-12-30T02:52:12.392Z","updated_at":"2025-01-05T03:00:09.206Z","status":"created","author_name":"sammcj","author_avatar_url":"https://avatars.githubusercontent.com/u/862951?v=4","tags":"javascript,python,go,npm,documentation,docs,node,ai,mcp,pip,llm","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/sammcj/mcp-package-docs","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/a28dc89669177a1f7239181ee5626bd1255e2f06c62695d1d6acefc2c78ce438/68747470733a2f2f736d6974686572792e61692f62616467652f6d63702d7061636b6167652d646f6373","type":null,"metadata":"{\"star\":\"60\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-04 16:42:53\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]