Context7 MCP for Windsurf
Enhanced AI coding with real-time documentation
Context7 and Windsurf
Windsurf supports the Model Context Protocol, allowing Context7 integration for enhanced AI coding assistance with current, accurate documentation.
Benefits
- Better Code Generation using current API patterns
- Accurate Library Knowledge for new and updated libraries
- Reduced Hallucinations with real documentation
Quick Installation
npx @upstash/context7-mcp@latest init --windsurf This configures Windsurf automatically. Restart after running.
Manual Installation
Find Windsurf's MCP configuration file (check Windsurf documentation for location). Add Context7 to mcpServers with command "npx" and args ["-y", "@upstash/context7-mcp@latest"].
Using Context7
Ask Windsurf about libraries naturally:
- "How do I implement authentication with Clerk?"
- "Show me how to set up Zustand for state management"
- "How do I handle file uploads with uploadthing?"
Tips
- Be specific about library names
- Include project context for better results
- Ask for explanations while implementing