---
title: "Context7 MCP: update Astro project with best practices"
description: "Use the Context7 MCP server to give Warp agents real-time access to framework documentation for automated project upgrades."
canonical: "https://docs.warp.dev/guides/external-tools/context7-mcp-update-astro-project-with-best-practices/"
---

> For the complete documentation index, see [llms.txt](https://docs.warp.dev/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Context7 MCP: update Astro project with best practices

Use the Context7 MCP server to give Warp agents real-time access to framework documentation for automated project upgrades.

Note

The Context7 MCP server gives Warp agents real‑time access to documentation for upgrading frameworks and codebases automatically.

![Using Context7 MCP to update an Astro project video](https://i.ytimg.com/vi/rrxfS9u1XRA/sddefault.jpg)

* * *

## 🧠 Overview

The Context7 MCP server lets Warp fetch live documentation from across the web.  
  
In the example, the agent updates an older Astro project to align with the latest version (Astro 5).

* * *

1.  #### Add the Context7 server
    
    -   Open Warp’s **MCP Panel** via the Command Palette.
    -   Add the Context7 JSON config and click **Save**.
    
    ```json
    {
      "Context7": {
        "command": "npx",
        "args": [
          "-y",
          "@upstash/context7-mcp"
        ],
        "env": {},
        "working_directory": null
      }
    }
    ```
    
    -   This enables the endpoint `getLibraryDocs`, which retrieves live documentation directly from the official sources.
2.  #### Run the update prompt
    
    The developer issues this prompt:
    
    ```plaintext
    Create a new git branch called update and in that branch update this Astro project to follow all the latest best practices based on all Astro and developer documentation.
    ```
    
3.  #### Review the automatic code changes
    
    The transcript shows that Warp automatically:
    
    -   Updates Tailwind import syntax
    -   Improves TypeScript configuration
    -   Optimizes build settings
    -   Enhances accessibility rules
    
    These edits happen across multiple files — without manually searching docs or changelogs.
    
4.  #### Best use cases
    
    -   Migrating old Astro, React, or Vue projects
    -   Refreshing codebases to reflect recent standards
    -   Saving time otherwise spent reading version notes

Tip

Context7 MCP automates documentation lookups — letting Warp update your project intelligently based on live references.
