How To Set Up Context7 MCP Server in VS Code
This is a short guide on how to get the Context7 MCP server in VS Code to run
Flo
Necessary steps
- Go to the Context7 dashboard
- Create an account
- Create an API key and copy it
- Go to VS Code (where a agent like GitHub Copilot has to be already preinstalled)
- Set the agent in the chat view to agent mode
- Create a .vscode folder
- Create a mcp.json file
- Use the necessary configuraton of the documentation
- Insert your API key
- Click on Start in the mcp.json file where your MCP server is defined
- Important: In my case a Pylance MCP server (maybe from the Pylance extension) blocked the Context7 MCP server. If this is the case for you, please disable the Pylance extension!
- Prompt the agent with a question and add ‘use context7’