WD

withastro/docs-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

68 stars 12 forks 质量 51 趋势 0

withastro/docs-mcp 是从 https://github.com/withastro/docs-mcp. 导入的 MCP 服务器候选

概览

withastro/docs-mcp 是从 https://github.com/withastro/docs-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

这是Astro文档的模型上下文协议(MCP)服务器,允许Cursor、VS Code、Claude、ChatGPT和Windsurf等AI工具访问最新的Astro文档。

MCP 是一种标准化的方式,用于将语言模型与外部工具、数据和 API 连接起来。该服务器允许大型语言模型以结构化方式访问 Astro 文档,从而回答关于 Astro 功能、API 和最佳实践的问题。这使得工具在生成代码、回答问题或提供帮助时,能够使用最新且准确的文档。

用途

Astro Docs MCP 服务器是一个远程服务器,无需本地安装任何东西。你需要为兼容 MCP 的工具添加以下设置:

  • 姓名:Astro Docs
  • 网址:https://mcp.docs.astro.build/mcp
  • 运输:http

[!注] 本服务器使用新的_streamable HTTP_传输。部分工具仅支持 SSE 传输用于远程服务器,这与该服务器不兼容。如果您的工具不支持可流式 HTTP,您需要使用本地代理。详情请参见下方的 Windsurf 部分。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Astro Docs MCP Server

This is the Model Context Protocol (MCP) server for the Astro documentation, allowing AI tools such as Cursor, VS Code, Claude, ChatGPT, and Windsurf to access the latest Astro docs.

MCP is a standardized way to connect language models to external tools, data, and APIs. This server allows LLMs to access the Astro documentation in a structured way, enabling them to answer questions about Astro’s features, APIs, and best practices. This allows tools to use up-to-date and accurate documentation when generating code, answering questions, or providing assistance.

Usage

The Astro Docs MCP server is a remote server that doesn’t require anything to be installed locally. You need to add the following settings to your MCP-compatible tool:

  • Name: Astro Docs
  • URL: https://mcp.docs.astro.build/mcp
  • Transport: http

[!NOTE] This server uses the new streamable HTTP transport. Some tools only support SSE transport for remote servers, which is not compatible with this server. If your tool does not support streamable HTTP, you will need to use a local proxy. See the Windsurf section below for details.

Each tool has its own way of adding MCP servers, so here are instructions for some popular tools:

Cursor

GitHub doesn’t support Cursor deep links, so open the link below in your browser to install the MCP server in Cursor:

cursor://anysphere.cursor-deeplink/mcp/install?name=Astro%20docs&config=eyJ1cmwiOiJodHRwczovL21jcC5kb2NzLmFzdHJvLmJ1aWxkL21jcCJ9

More info on MCP in Cursor

Claude.ai / Claude Desktop

More info on MCP in Claude.ai

Claude Code

Run the following command in your terminal to add the MCP server:

claude mcp add --transport http "Astro docs" https://mcp.docs.astro.build/mcp

More info on MCP in Claude Code

VS Code

GitHub doesn’t support VS Code deep links, so open the link below in your browser to install the MCP server in VS Code:

vscode:mcp/install?%7B%22name%22%3A%22Astro%20docs%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.docs.astro.build%2Fmcp%22%7D

More info on MCP in VS Code

Windsurf

As of July 2025, Windsurf doesn’t support streamable HTTP MCP servers, so you need to use a local proxy. Use the following configuration:

{
  "mcpServers": {
    "Astro docs": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.docs.astro.build/mcp"]
    }
  }
}
在 GitHub 查看完整 README

安装

npx -y mcp-remote https://mcp.docs.astro.build/mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Astro docs": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.docs.astro.build/mcp"] } } }