Astro - MCP

Introduction

You can ensure your AI tools have current Astro knowledge through the Astro Docs MCP (Model Context Protocol) server.

This provides real-time access to the latest documentation, helping AI tools avoid outdated recommendations and ensuring they understand current best practices.

Unlike AI models trained on static data, the MCP server provides access to the latest Astro documentation. The server is free, open-source, and runs remotely with nothing to install locally.

The Astro Docs MCP server uses the kapa.ai API to maintain an up-to-date index of the Astro documentation.

Claude

To add the server to the Claude desktop application, run:

Terminal window
claude mcp add --transport http astro-docs https://mcp.docs.astro.build/mcp

Junie

To add the server to Junie, run the interactive /mcp command and follow the Installation Assistant’s prompts:

  1. Open Junie CLI in your project.
  2. Type /mcp to open the configuration screen.
  3. Use the Installation Assistant to add a new server.
  4. Select the project scope (.junie/mcp/mcp.json).
  5. Choose Remote connection and provide the name Astro Docs (Official) and the URL https://mcp.docs.astro.build/mcp.

Alternatively, you can manually add the configuration to your .junie/mcp/mcp.json file:

{
"mcpServers": {
"Astro Docs (Official)": {
"url": "https://mcp.docs.astro.build/mcp"
}
}
}

Usage

Once the MCP server is added, you can simply ask Junie questions about Astro in natural language, and it will use the MCP tool to find the most current information. For example:

Search Astro docs for how to use server-side rendering (SSR)

References

https://docs.astro.build/en/guides/build-with-ai/

https://github.com/morinokami/astro-mcp