Cursor Integration
Integrate OpenGround with Cursor to search documentation directly within your IDE conversations.Prerequisites
1
Install OpenGround
2
Add Documentation
Index at least one library:
3
Install Cursor
Download from cursor.sh
Installation
Automatic Installation (Recommended)
OpenGround provides an automatic installer that safely modifies Cursor’s MCP configuration:- Locates your Cursor config directory
- Creates a backup of existing
mcp.json(if it exists) - Safely merges the OpenGround server configuration
- Validates the JSON before writing
Success! You should see: “Successfully installed openground to Cursor!”
What Gets Configured
The installer adds this configuration to yourmcp.json:
Configuration File Locations
Cursor’s MCP configuration is stored at platform-specific locations:- macOS
- Linux
- Windows
Manual Installation
If you prefer to edit the configuration manually:1
Generate Configuration
2
Locate Cursor Config
Navigate to your platform’s config directory (see locations above)
3
Edit mcp.json
Create or edit the If you have existing servers, add
mcp.json file:openground to the mcpServers object:4
Validate JSON
Ensure your JSON is valid (no trailing commas, proper quotes)
Configuration Details
Command Resolution
The installer automatically resolves the full path toopenground-mcp:
Transport Protocol
OpenGround uses stdio transport:- Cursor spawns
openground-mcpas a subprocess - Communication via stdin/stdout
- No network ports or authentication needed
Backup Files
The automatic installer creates timestamped backups:Verification
1
Restart Cursor
Completely quit and restart Cursor
2
Open Cursor Chat
Start a new chat conversation
3
Test OpenGround Tools
Ask: “What documentation libraries are available in openground?”Cursor should call the
list_libraries_tool and display your indexed librariesUsing OpenGround in Cursor
Automatic Usage
Cursor will automatically invoke OpenGround tools when relevant:Explicit Requests
You can explicitly ask Cursor to search documentation:Code Context + Documentation
Cursor can combine your code context with OpenGround documentation:Platform-Specific Configuration
macOS
No special configuration needed. OpenGround should work out of the box after installation.Linux
Ensure pip’s bin directory is in your PATH:Windows
- Standard Installation
- WSL Installation
Ensure Python Scripts directory is in your PATH:If not found, add to PATH:Then run the installer:
Advanced Configuration
Using Specific Python Environment
If you need to use a specific Python environment:Environment Variables
You can pass environment variables to the MCP server:Multiple OpenGround Instances
Run separate OpenGround instances with different configurations:Troubleshooting
Configuration Not Applied
1
Verify File Location
Confirm
mcp.json is in the correct directory for your platform2
Check JSON Syntax
Validate JSON using a linter or:
3
Restart Cursor Completely
Quit Cursor entirely (not just close window), then restart
Invalid JSON Error
If Cursor reports invalid JSON:-
Restore from backup:
-
Re-run the installer:
Permission Denied
If the installer reports permission errors:Command Not Found
If Cursor reportsopenground-mcp not found:
1
Verify Installation
2
Use Full Path
Edit
mcp.json to use the full path:3
Restart Cursor
Completely quit and restart
No Search Results
Verify documentation is indexed:Updating Configuration
To update your OpenGround configuration:- Creates a new timestamped backup
- Preserves existing MCP servers
- Updates only the OpenGround configuration
Next Steps
Add Libraries
Index more documentation sources
Configure Search
Customize embedding models and search behavior
MCP Overview
Learn more about MCP architecture
Custom Agents
Use with other MCP-compatible clients