Get the FREE Ultimate OpenClaw Setup Guide →

doc

MCP server from Shengwang-Community/doc-mcp-server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio shengwang-community-doc-mcp-server bun run dev:watch \
  --env PORT="3000" \
  --env BUN_ENV="development"

How to use

This MCP server exposes a documentation-focused set of tools for interacting with the Shengwang docs site. The available tools are search-docs, list-docs, and get-doc-content. You can query for relevant documentation using search-docs to receive a list of matching documents with titles, categories, and URIs. Use get-doc-content with a specific docs:// URI to fetch the full content for a page, which can then be summarized or integrated into other workflows. The list-docs tool can enumerate documentation categories and provide structured metadata about docs paths and local URIs, useful for programmatic navigation or building tooling around the docs corpus. In agent or VS Code integrated scenarios, you can invoke these tools in combination to locate a topic and retrieve its content for use in code examples, UI components, or product documentation workflows.

How to install

Prerequisites:

  • Node.js or Bun installed (the project recommends Bun for development).
  • Access to a terminal.

Install and run:

  1. Install Bun (if not already installed):
curl bun.sh | bash
  1. Install dependencies (in project root):
bun install
  1. Download initial docs data (if your setup provides a download script):
bun run doc:download
  1. Start the MCP server in watch/development mode:
bun run dev:watch
  1. Open the MCP endpoint in your browser or client:

If you need to run via npm scripts instead of Bun, ensure you adapt the commands to your environment accordingly (for example, npm install and npm run dev:watch).

Additional notes

Notes and tips:

  • The MCP server exposes three core tools: search-docs, list-docs, and get-doc-content. Use them in sequence to locate and fetch documentation content efficiently.
  • The public entry point is /mcp; ensure your firewall or proxy allows access to this path.
  • When integrating with editors (e.g., VS Code) or agent modes, you can reference the MCP server by its URL and call the tools via the agent, similar to the examples in the documentation.
  • If you encounter issues starting the server, verify that Bun is installed correctly and that local ports (default 3000) are available. Adjust the PORT environment variable if needed.
  • The documentation data may be large; consider using the provided doc:download script (if available) to prefetch content for faster tool responses.

Related MCP Servers

Sponsor this space

Reach thousands of developers