Skip to main content
Glama

MCP Doc Server

MIT License
3

MCP Server (Doc)

基于文档站的 MCP 服务器,支持对官网文档的关键字搜索和内容获取。

Getting Started

Tools

  • search-docs
  • list-docs
  • get-doc-content
search-docs

Example Request

{ "query": "rtc" }

Example Response

{ "data": [ { "text": "流程总览", "category": "default", "uri": "docs://default/analytics/general/rtc/call-search/overview" }, { "text": "查看通话详情 本文介绍如何查看通话详情页面的三个子页面。", "category": "default", "uri": "docs://default/analytics/general/rtc/call-search/call-detail" }, { "text": "案例:常见问题排查 本文结合案例介绍如何排查常见的通话质量问题。 信息异常的指标数据均用红色表示。", "category": "default", "uri": "docs://default/analytics/general/rtc/call-search/troubleshooting" } ] }
list-docs

Example Response

{ "categories": ["shared", "default", "api-reference", "faq", "basics"], "total": 8033, "docs": [ { "path": "doc/rtm2/android/user-guide/setup/account-and-billing", "name": "account-and-billing", "category": "default", "depth": 6, "uri": "docs://default/rtm2/android/user-guide/setup/account-and-billing", "localPath": "default/rtm2/android/user-guide/setup/account-and-billing" }, { "path": "doc/rtm2/cpp/user-guide/setup/account-and-billing", "name": "account-and-billing", "category": "default", "depth": 6, "uri": "docs://default/rtm2/cpp/user-guide/setup/account-and-billing", "localPath": "default/rtm2/cpp/user-guide/setup/account-and-billing" } ] }
get-doc-content

Example Request

{ "uri": "docs://default/analytics/general/rtc/call-search/call-detail" }

Example Response

--- title: 查看通话详情 displayed_sidebar: analytics_general_usecase_sidebar ag_product: analytics ag_product_label: 水晶球 ag_platform: general ag_platform_label: 控制台 ag_usecase: usecase last_update_date: 2023/09/19 10:48:49 ag_file_path: default/analytics/general/rtc/call-search/call-detail.mdx --- 本文介绍如何查看通话详情页面的三个子页面。 ## 通话详情主页 ...

接入

接入点

接入方式

VS Code & Copilot

根据官方文档接入 MCP Server。

Example .vscode/mcp.json

{ "servers": { "my-mcp-server-7b6dc6ec": { "url": "https://doc-mcp.shengwang.cn/mcp" } } }

可以在 Agent Mode 下使用井号键(#)来调用 MCP Server 的工具。

比如:

  1. 提问:如何在 TS 中集成 RTC。
#search-docs #get-doc-content 通过search-docs搜索有关 rtc 的文档,通过get-doc-content工具获取文档内容,并告诉我如何在TS中集成RTC。
  1. 实现一个基于 RTC 的 1v1 的纯语音互动 demo。
#search-docs #get-doc-content > 你可以通过search-docs搜索有关javascript的 rtc sdk 的文档,通过get-doc-content工具获取文档内容。 帮我实现一个1v1的纯语音互动,要求是一个页面(用tailwindcss@3),有个表单(appID, token, channel name, userID),有个加入 和 离开 按钮。 请你使用vite来初始化并创建/运行该项目。 目录就在当前项目下,叫 agora-voice-demo。 要求有人加入的时候立刻订阅他,以实现纯语音通话
Cursor

Example .cursor/mcp.json

{ "mcpServers": { "server-name": { "url": "https://doc-mcp.shengwang.cn/mcp" } } }

可以在 Agent Mode 下,由 agent 自己判断并调用 MCP Server 的工具。

比如:

通过search-docs搜索有关 rtc 的文档,通过get-doc-content工具获取文档内容,并告诉我如何在TS中集成RTC。

Development

推荐使用 Bun 进行开发。

参考 MCP Server TypeScript SDK

Install

bun install

Initiate docs

bun run doc:download

Start server

bun run dev:watch

Start Inspector

bun inspect

Then input https://doc-mcp.shengwang.cn/mcp in the inspector.

-
security - not tested
A
license - permissive license
-
quality - not tested

A document-based MCP server that supports keyword searching and content retrieval from official website documentation.

  1. Getting Started
    1. Tools
  2. 接入
    1. 接入点
    2. 接入方式
  3. Development
    1. Install
    2. Initiate docs
    3. Start server
    4. Start Inspector

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol (MCP) server that enables semantic search and retrieval of documentation using a vector database (Qdrant). This server allows you to add documentation from URLs or local files and then search through them using natural language queries.
    Last updated -
    14
    74
    JavaScript
    Apache 2.0
    • Apple
  • -
    security
    F
    license
    -
    quality
    A custom MCP server that allows storage, retrieval, and management of text-based information with natural language commands and keyword detection.
    Last updated -
    TypeScript
    • Linux
    • Apple
  • -
    security
    F
    license
    -
    quality
    An MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.
    Last updated -
    Python
  • A
    security
    A
    license
    A
    quality
    A documentation server based on MCP protocol designed for various development frameworks that provides multi-threaded document crawling, local document loading, keyword searching, and document detail retrieval.
    Last updated -
    2
    37
    JavaScript
    MIT License
    • Apple
    • Linux

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Shengwang-Community/doc-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server