Skip to content

Context7 Platform -- Up-to-date docs for AI agents

docs: add add-mcp install snippet (#1707)

Andre Landgraf1aa29f7bc530
diff --git a/README.md b/README.md
index 71da0cf5..8bd437e4 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,16 @@ Context7 fetches up-to-date code examples and documentation right into your LLM'
> [!NOTE]
> **API Key Recommended**: Get a free API key at [context7.com/dashboard](https://context7.com/dashboard) for higher rate limits.
+### Install with add-mcp
+
+Install the MCP server for all your coding agents:
+
+```bash
+npx add-mcp https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: YOUR_API_KEY"
+```
+
+Add `-y` to skip the confirmation prompt and install to all detected agents already in use in the project directory.
+
<details>
<summary><b>Install in Cursor</b></summary>