Setup
There are multiple ways to add Context7 as an MCP server in Factory AI. ReplaceYOUR_API_KEY with your API key from the Context7 dashboard.
Using the CLI
Using the MCP Manager
Run the/mcp command inside Factory and add Context7 from the interface.
Using a Configuration File
Add Context7 directly to your.factory/mcp.json (project-level) or ~/.factory/mcp.json (user-level):
How It Works
Once connected, Factory Droids will query Context7 for relevant library documentation during coding tasks. This helps Droids:- Use correct API signatures and patterns from the latest documentation
- Avoid deprecated methods or outdated usage patterns
- Generate implementations aligned with library best practices
- Produce higher-quality code with fewer revision cycles