Skip to content

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

Add Copilot CLI installation instructions to README

Kcb7e129b04690
diff --git a/README.md b/README.md
index 1256ecd5..911708b2 100644
--- a/README.md
+++ b/README.md
@@ -840,6 +840,57 @@ For more information, see the [official GitHub documentation](https://docs.githu
</details>
+<details>
+<summary><b>Install in Copilot CLI</b></summary>
+
+1. Open the Copilot CLI MCP config file. The location is `~/.copilot/mcp-config.json` (where `~` is your home directory).
+2. Add the following to the `mcpServers` object in your `settings.json` file:
+
+```json
+{
+ "mcpServers": {
+ "context7": {
+ "type": "http",
+ "url": "https://mcp.context7.com/mcp",
+ "headers": {
+ "CONTEXT7_API_KEY": "YOUR_API_KEY"
+ },
+ "tools": [
+ "get-library-docs",
+ "resolve-library-id"
+ ]
+ }
+ }
+}
+```
+
+Or, for a local server:
+
+```json
+{
+ "mcpServers": {
+ "context7": {
+ "type": "local",
+ "command": "npx",
+ "tools": [
+ "get-library-docs",
+ "resolve-library-id"
+ ],
+ "args": [
+ "-y",
+ "@upstash/context7-mcp",
+ "--api-key",
+ "YOUR_API_KEY"
+ ]
+ }
+ }
+}
+```
+
+If the `mcp-config.json` file does not exist, create it.
+
+</details>
+
<details>
<summary><b>Install in LM Studio</b></summary>