Quick Checklist
- Confirm Node.js v18+ is installed (
node --version) - Update to the latest Context7 MCP package (
@upstash/context7-mcp@latest) - Verify connectivity with
curl https://mcp.context7.com/mcp/ping - Add your API key to the configuration if you hit rate limits
- Enable debug logs (
DEBUG=*) before collecting support information
Installation Issues
Module Not Found Errors
If you encounterERR_MODULE_NOT_FOUND, try using bunx instead of npx:
ESM Resolution Issues
For errors such asError: Cannot find module 'uriTemplate.js', try the --experimental-vm-modules flag:
TLS/Certificate Issues
Use the--experimental-fetch flag to bypass TLS-related problems:
Quick Fixes
- Try adding
@latestto the package name to ensure you’re using the most recent version:
- Use
bunxas an alternative tonpx:
- Consider using
denoas another alternative runtime:
- Ensure you’re using Node.js v18 or higher for native fetch support:
Platform-Specific Issues
Windows Issues
Request Timeout Errors
On Windows, some users may encounter request timeout errors with the default configuration. Try using the full path to Node.js and the installed package:cmd:
macOS Issues
Request Timeout Errors
On macOS, some users may encounter the same request timeout errors. Use the full path to Node.js and the installed package:Replace
yourname and the Node.js version (v22.14.0) with your actual username and installed
Node.js version.API and Connection Issues
Rate Limiting
If you encounter rate limit errors:- Get an API key: Sign up at context7.com/dashboard for higher rate limits
- Add the API key to your configuration:
Authentication Errors
If you see401 Unauthorized errors:
- Verify your API key is correct and starts with
ctx7sk - Check the header format - ensure the API key is properly set:
Library Not Found
If you get404 Not Found errors:
- Verify the library ID format is correct:
/owner/repoor/owner/repo/version - Search for the library first using
resolve-library-idtool - Check if the library exists at context7.com
MCP Client-Specific Issues
Cursor
- Make sure you’re using Cursor 1.0 or later for the best MCP support
- Try both global (
~/.cursor/mcp.json) and project-specific (.cursor/mcp.json) configurations - Restart Cursor after changing the MCP configuration
VS Code
- Ensure you have the latest version of VS Code with MCP support
- Check that the Copilot extension is installed and updated
- Restart VS Code after configuration changes
Claude Code
- Verify the MCP server is added correctly with
claude mcp list - Check logs with
claude mcp logs context7 - Try removing and re-adding the server
Proxy Issues
If you’re behind a corporate proxy:- Set environment variables before starting your MCP client:
- Or add to your MCP configuration:
Debugging Tips
Enable Verbose Logging
Add debug output to your configuration:Test with MCP Inspector
Test your setup independently:Check Server Status
Test that the remote server is reachable:{"status": "ok", "message": "pong"}
Additional Support
If these solutions don’t resolve your issue:- Check GitHub Issues: Search for similar problems at github.com/upstash/context7/issues
- Create a new issue: Include your:
- Operating system and version
- Node.js version (
node --version) - MCP client and version
- Configuration (remove sensitive data like API keys)
- Error messages and logs
- Join Discord: Get help from the community at upstash.com/discord