Cursor IDE Setup
Complete guide to configuring Cursor for optimal AI-assisted development with MCP servers and documentation sites.
Complete guide to configuring Cursor for optimal AI-assisted development.
Prerequisites
- Cursor IDE installed
- This repository cloned
Step 1: Add Documentation Sites
Configure Cursor to access documentation:
- Open Cursor Settings (Cmd/Ctrl + ,)
- Navigate to "Features" → "Docs"
- Add the following documentation sites:
https://basilic-docs.vercel.app/docshttps://orm.drizzle.team/docshttps://tanstack.com/query/latest/docshttps://fastify.dev/docshttps://fumadocs.dev/docs
These documentation sites help Cursor provide better context-aware assistance when working with these technologies.
Step 2: Configure MCP Servers
What are MCP Servers?
Model Context Protocol servers extend AI capabilities with specialized tools. They allow Cursor to interact with external services and perform actions beyond code editing.
Available MCP Servers
This project includes 4 MCP servers:
- shadcn - UI component management (shadcn/ui)
- v0 - AI UI design and generation (v0.dev)
- GitHub - Repository operations
- Vercel - Deployment management
Setting Up API Keys
MCP servers require API keys to function:
For zsh (recommended):
# Add to ~/.zshrc
export V0_API_KEY=your_v0_api_key_here
export GITHUB_TOKEN=your_github_token_here
export VERCEL_API_TOKEN=your_vercel_api_token_here
# Reload
source ~/.zshrcFor bash:
# Add to ~/.bashrc
export V0_API_KEY=your_v0_api_key_here
export GITHUB_TOKEN=your_github_token_here
export VERCEL_API_TOKEN=your_vercel_api_token_here
# Reload
source ~/.bashrcImportant: Restart Cursor after setting environment variables.
Getting API Keys
- V0_API_KEY: v0.dev account settings
- GITHUB_TOKEN: GitHub Personal Access Tokens
- VERCEL_API_TOKEN: Vercel Account Tokens
Verifying MCP Setup
The MCP configuration is already in .cursor/mcp.json. After setting API keys:
- Restart Cursor
- Open Cursor settings
- Navigate to "MCP Servers"
- Verify all servers show as "Connected"
Step 3: Install Plugins
Recommended VS Code extensions (work with Cursor):
- CodeRabbit - AI code review assistant
- ESLint - JavaScript/TypeScript linting
- Biome - Fast formatter and linter
- Tailwind CSS IntelliSense - Tailwind autocomplete
- Error Lens - Inline error display
Install via Extensions panel (Cmd/Ctrl + Shift + X).
Step 4: Verify Setup
Test your configuration:
# Run linters
pnpm lint
# Start development
pnpm devTroubleshooting
MCP Servers Not Connecting
- Verify API keys are exported in shell
- Restart Cursor completely
- Check
.cursor/mcp.jsonsyntax - Ensure environment variables are loaded in shell
Cursor Rules Not Loading
- Check
.cursor/rules/directory exists - Verify rule files have
.mdcextension - Restart Cursor
- Check Cursor settings for rules configuration
Documentation Sites Not Working
- Verify URLs are correct
- Check internet connection
- Restart Cursor
- Check Cursor settings → Features → Docs
Next Steps
- AI Workflow - Learn the development workflow
- Cursor Rules - Understand coding standards
- Using MCP Servers - Practical usage