Astro Docs MCP Server
Provides access to Astro documentation with search capability, allowing AI agents to look up and reference specific Astro documentation sections when helping users with Astro-related tasks.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Astro Docs MCP Server search for how to use Astro Islands in my project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Astro Docs MCP Server
An MCP server for providing Astro documentation access to AI agents. This server allows AI assistants to look up and reference Astro documentation when helping users with Astro-related tasks.
This TypeScript-based MCP server implements a documentation retrieval system for Astro. It demonstrates core MCP concepts by providing:
Resources representing Astro documentation sections with URIs and metadata
Tools for searching Astro documentation
Prompts for common Astro questions and tasks
Features
Resources
List and access Astro documentation via
astro-docs://URIsEach doc section has a title, content, and category
Plain text mime type for simple content access
Tools
search_docs- Search Astro documentationTakes a search query as required parameter
Returns matching documentation sections
Prompts
explain_astro_islands- Get detailed explanations of Astro Islands architectureastro_project_setup- Guide for setting up a new Astro projectastro_vs_other_frameworks- Compare Astro with other web frameworks
Related MCP server: Dedalus MCP Documentation Server
Project Structure
src/- Source code for the MCP serverindex.ts- Main MCP server implementationscripts/- Helper scripts for building and testingbuild.js- Build script that transpiles TypeScript and creates launcher scriptstest-client.js- Test client for verifying server functionality
bin/- Generated executable scriptsastro-docs-mcp- Main launcher script for the MCP server
build/- Compiled JavaScript files (generated)
Requirements
Node.js v16 or later is required
Node.js v20+ is recommended for best compatibility
The server uses ES modules syntax
pnpm package manager (preferred over npm)
Installation
Installing Dependencies
Install dependencies:
pnpm installBuild the server:
pnpm run buildFor development with auto-rebuild:
pnpm run watchRunning the Server
pnpm start
# OR directly
./bin/astro-docs-mcpConfiguration with Claude Desktop
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Important: The configuration must use the absolute path to the script:
{
"mcp_servers": [
{
"id": "astro-docs-mcp",
"name": "Astro Docs",
"command": "/full/absolute/path/to/astro-mcp/bin/astro-docs-mcp",
"type": "built-in"
}
]
}Replace /full/absolute/path/to/astro-mcp/ with the actual absolute path to your installation directory.
For example, if the repository is at /Users/username/projects/astro-mcp, the command would be:
"/Users/username/projects/astro-mcp/bin/astro-docs-mcp"Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
pnpm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
Testing
A test client is provided to verify the server is working correctly:
pnpm test
# OR directly
node src/scripts/test-client.jsThis will send several commands to the server and display the responses.
Troubleshooting
If you encounter issues with the server:
Path Issues: The most common problem is incorrect paths in the configuration. Make sure:
You're using an absolute path to the script in claude_desktop_config.json
The path points to
bin/astro-docs-mcp(not the root script)The build directory exists and contains index.js (
ls -la build/)All scripts have executable permissions
"Module not found" errors: If you see errors like
Cannot find module '/build/index.js', check:That you've run the build step (
pnpm run build)That the script is being run from the correct directory
That absolute paths are being used for the script execution
Node.js Version: Make sure you're using Node.js v16 or later. For best results, use v20+.
node --versionScript Permissions: Ensure the scripts have executable permissions:
chmod +x bin/astro-docs-mcp src/scripts/build.js src/scripts/test-client.jsJSON Output Issues: Debug messages being sent to stdout will confuse Claude Desktop because it expects only valid JSON. Our scripts properly redirect all debug output to stderr.
Usage with Claude Desktop
Install the server by following the installation steps above.
Configure Claude Desktop by editing the configuration file to include the absolute path to the script:
{ "mcp_servers": [ { "id": "astro-docs-mcp", "name": "Astro Docs", "command": "/full/absolute/path/to/astro-mcp/bin/astro-docs-mcp", "type": "built-in" } ] }Restart Claude Desktop.
You can now interact with the Astro documentation using the following commands:
list- List available Astro documentation sectionssearch <query>- Search the Astro documentationread astro-docs:///<id>- Read a specific documentation section
Future Enhancements
Fetch real-time documentation from Astro's website
Add more comprehensive documentation sections
Implement documentation versioning support
Add code examples and snippets for common Astro patterns
Available Tools
1 toolsearch_docsC
Search Astro documentation
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools. The single tool 'search_docs' has a clearly distinct and unambiguous purpose.
The single tool name 'search_docs' follows a clear verb_noun pattern, and with only one tool, consistency is inherently perfect as there are no other names to compare against.
A single tool for an 'Astro Docs MCP Server' feels too thin for the apparent scope. While search is a core function, documentation servers typically benefit from additional tools like browsing, filtering, or retrieving specific pages, making this count borderline inadequate.
The tool surface is severely incomplete for a documentation server. It only provides search functionality, lacking obvious gaps such as retrieving documentation pages, listing categories, or navigating content, which are essential for comprehensive agent interaction with documentation.
Maintenance
Related MCP Connectors
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that integrates with Discord to provide AI-powered features.
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to access up-to-date documentation for Python libraries like LangChain, LlamaIndex, and OpenAI through dynamic fetching from official sources.1MIT
- AlicenseAqualityDmaintenanceAn MCP server that serves documentation and enables AI-powered search, Q\&A, and document analysis for developer tools and guides.54MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.15 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Astro/Starlight docs sites, providing search, get, and list tools for documentation content.428 npm13MIT