1. Conduid
  2. AI
  3. Astro MCP
MCP server · AI

Astro MCP

MCP server to support Astro project development

Unclaimed MIT ai
66Good

Scored 7 days ago · breakdown

About Astro MCP

Astro MCP is an MCP server published by morinokami in the AI category: mCP server to support Astro project development.

The repository has 61 stars and 1 forks, with the last commit 5 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/morinokami/astro-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (7)

get-astro-changesGet the changelog of the Astro-related packages

Parameters not published.

get-astro-configGet the Astro config object containing comprehensive project settings including file paths (root, src, public, output directories), site URL, build options, server settings, enabled integrations, markdown processing configuration, image handling, Vite plugins, security settings, and experimental features

Parameters not published.

get-astro-integrationGet detailed metadata about a specific Astro integration, including its name, description, categories, repository links, npm information, related website links, official status, and download statistics

Parameters not published.

get-astro-server-addressGet the current network address, IP protocol family, and port number of the running Astro development server

Parameters not published.

list-astro-integrationsList all Astro integrations available in the ecosystem

Parameters not published.

list-astro-routesList detailed routing information from your Astro project, including all routes with their file entrypoints, URL patterns, dynamic parameters, pre-rendering status, and route types. Optionally filter by type to focus on specific route categories

Parameters not published.

search-astro-docsSearch the Astro documentation for specific topics, concepts, or features. Returns relevant documentation snippets that match your query

Parameters not published.

Ask AI

✦

Ask AI about Astro MCP

Powered by Claude · Grounded in docs

I know everything about Astro MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

astro-mcp@0.4.2astro-mcp@0.4.2 · 11 Sep 2025Patch Changes #164 `671417a` Thanks @morinokami! - Publish…
astro-mcp@0.4.1astro-mcp@0.4.1 · 20 Jun 2025Patch Changes #83 `118df14` Thanks @morinokami! - Add Claude…
astro-mcp@0.4.0astro-mcp@0.4.0 · 14 Jun 2025Minor Changes #75 `686b23e` Thanks @morinokami! - Add…
astro-mcp@0.3.2astro-mcp@0.3.2 · 16 May 2025Patch Changes #42 `51d83a6` Thanks @dependabot! - Add…
astro-mcp@0.3.1astro-mcp@0.3.1 · 20 Apr 2025Patch Changes #16 `807da89` Thanks @morinokami! - Improve tool…

README

astro-mcp

MCP server to support Astro project development, inspired by antfu's nuxt-mcp.

[!IMPORTANT] This package is experimental and unstable. Proceed with caution when using it.

astro-mcp aims to help models understand your Astro project better, by providing them with information that cannot be easily accessed just by looking at the project files, such as:

  • Runtime information about the Astro server
  • Up-to-date Astro docs content
  • Information about the Astro integrations you are using

Installation

In your Astro project directory, run the following command:

npx astro add astro-mcp

Manual installation

First, install the astro-mcp package:

npm install astro-mcp

Then, add the astro-mcp integration to your Astro config:

import { defineConfig } from "astro/config";

import mcp from "astro-mcp";

export default defineConfig({
  integrations: [mcp()],
});

Usage

After installing the integration, the MCP server will be available at http://localhost:4321/__mcp/sse. To connect, create an empty configuration file in the appropriate location for your editor or tool:

Editor/Tool Configuration File
VSCode .vscode/mcp.json
Cursor .cursor/mcp.json
Windsurf ~/.codeium/windsurf/mcp_config.json
Claude Code .mcp.json

astro-mcp will automatically update the file when the Astro server starts.

Extending the MCP server

astro-mcp provides a hook called mcp:setup that other integrations can use to extend the MCP server. This is useful if you want to add custom tools to the MCP server.

export default function createExampleIntegration(): AstroIntegration {
  return {
    name: "example-integration",
    hooks: {
      "mcp:setup": async ({ mcp }) => {
        mcp.tool("add", { a: z.number(), b: z.number() }, async ({ a, b }) => ({
          content: [{ type: "text", text: String(a + b) }],
        }));
      },
    },
  };
}

Tools

  • get-astro-config: Get the Astro config object containing comprehensive project settings including file paths (root, src, public, output directories), site URL, build options, server settings, enabled integrations, markdown processing configuration, image handling, Vite plugins, security settings, and experimental features
    • Parameters: None
  • list-astro-routes: List detailed routing information from your Astro project, including all routes with their file entrypoints, URL patterns, dynamic parameters, pre-rendering status, and route types. Optionally filter by type to focus on specific route categories
    • Parameters:
      • type (string, optional): redirect, page, endpoint, or fallback
  • get-astro-server-address: Get the current network address, IP protocol family, and port number of the running Astro development server
    • Parameters: None
  • list-astro-integrations: List all Astro integrations available in the ecosystem
    • Parameters: None
  • get-astro-integration: Get detailed metadata about a specific Astro integration, including its name, description, categories, repository links, npm information, related website links, official status, and download statistics
    • Parameters:
      • name (string): The name of the Astro integration to get information about
  • search-astro-docs: Search the Astro documentation for specific topics, concepts, or features. Returns relevant documentation snippets that match your query
    • Parameters:
      • query (string): The query to search for
  • get-astro-changes: Get the changelog of the Astro-related packages
    • Parameters:
      • packageName (string): The name of the Astro-related package to get the changelog for

Tools from vite-plugin-mcp

  • get-vite-config: Get the Vite config digest, including the root, resolve, plugins, and environment names
    • Parameters: None
  • get-vite-module-info: Get graph information of a module, including importers, imported modules, and compiled result
    • Parameters:
      • filepath (string): The absolute filepath of the module

README fetched from the repository yesterday. The original is authoritative.

Questions

About Astro MCP

How do I install Astro MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Astro MCP safe to use with an AI agent?

Its trust score is 66 out of 100 (good). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Astro MCP still maintained?

Yes — the last commit was 5 months ago. The repository has 61 stars and 1 forks and 13 open issues.