Skip to main content

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

OpenGround provides an automatic installer that safely modifies Cursor’s MCP configuration:
This command:
  1. Locates your Cursor config directory
  2. Creates a backup of existing mcp.json (if it exists)
  3. Safely merges the OpenGround server configuration
  4. Validates the JSON before writing
Success! You should see: “Successfully installed openground to Cursor!”

What Gets Configured

The installer adds this configuration to your mcp.json:
If you already have other MCP servers configured, they will be preserved.

Configuration File Locations

Cursor’s MCP configuration is stored at platform-specific locations:

Manual Installation

If you prefer to edit the configuration manually:
1

Generate Configuration

This displays the JSON configuration without modifying any files
2

Locate Cursor Config

Navigate to your platform’s config directory (see locations above)
3

Edit mcp.json

Create or edit the mcp.json file:
If you have existing servers, add 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 to openground-mcp:
If the command is not in your PATH, the full path will be used automatically.

Transport Protocol

OpenGround uses stdio transport:
  • Cursor spawns openground-mcp as a subprocess
  • Communication via stdin/stdout
  • No network ports or authentication needed

Backup Files

The automatic installer creates timestamped backups:
You can restore from a backup if needed:

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 libraries

Using 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:
Verify command is available:

Windows

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 platform
2

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:
  1. Restore from backup:
  2. Re-run the installer:

Permission Denied

If the installer reports permission errors:

Command Not Found

If Cursor reports openground-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:
The installer automatically:
  1. Creates a new timestamped backup
  2. Preserves existing MCP servers
  3. 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