Astro Docs
About
Provides direct access to Astro documentation through searchable, categorized resources and curated prompts for helping developers with component architecture, content management, and deployment tasks.
Details
- Repository
- dreyfus92/astro-docs-mcp
Explore
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Astro DocsCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
- 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)
Install dependencies:
pnpm install
Build the server:
pnpm run build
For development with auto-rebuild:
pnpm run watch
pnpm start
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:
json{
"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"
1. Install the server by following the installation steps above.
2. Configure Claude Desktop by editing the configuration file to include the absolute path to the script:
json{
"mcp_servers": [
{
"id": "astro-docs-mcp",
"name": "Astro Docs",
"command": "/full/absolute/path/to/astro-mcp/bin/astro-docs-mcp",
"type": "built-in"
}
]
}
``
3. Restart Claude Desktop.
4. You can now interact with the Astro documentation using the following commands:
-
list - List available Astro documentation sections
- search <query> - Search the Astro documentation
- read astro-docs:///<id>` - Read a specific documentation sectionsearch_docs
Search Astro documentation. Takes a search query as a required parameter and returns matching documentation sections.
list
List available Astro documentation sections.
search
Search the Astro documentation. Takes a query as a parameter.
read
Read a specific documentation section. Takes a documentation ID in the format 'astro-docs:///<id>'.
- search_docs - Search Astro documentation
- Takes a search query as required parameter
- Returns matching documentation sections
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"astro docs": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
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.
<a href="https://glama.ai/mcp/servers/@dreyfus92/astro-docs-mcp">
</a>
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 viaastro-docs:// URIs
- Each doc section has a title, content, and category
- Plain text mime type for simple content access
Tools
-search_docs - Search Astro documentation
- Takes a search query as required parameter
- Returns matching documentation sections
Prompts
-explain_astro_islands - Get detailed explanations of Astro Islands architecture
- astro_project_setup - Guide for setting up a new Astro project
- astro_vs_other_frameworks - Compare Astro with other web frameworks
Project Structure
- src/ - Source code for the MCP server
- index.ts - Main MCP server implementation
- scripts/ - Helper scripts for building and testing
- build.js - Build script that transpiles TypeScript and creates launcher scripts
- test-client.js - Test client for verifying server functionality
- bin/ - Generated executable scripts
- astro-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 install
Build the server:
pnpm run build
For development with auto-rebuild:
pnpm run watch
Running the Server
```bash
pnpm start
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



