Overview
Cursor is an AI-powered code editor built on VS Code. It supports Model Context Protocol (MCP), allowing you to integrate WebHelp MCP Server directly into your coding workflow for instant documentation access.Prerequisites
- Cursor IDE installed (download here)
- WebHelp MCP Server deployed and accessible
- Node.js installed (for local MCP servers)
Configuration
Open Cursor Settings
Access Cursor’s configuration:
- Open Cursor IDE
- Press
Cmd/Ctrl + Shift + Pto open command palette - Type “Preferences: Open User Settings (JSON)”
- Or navigate to
File > Preferences > Settingsand search for “MCP”
Configure MCP Servers
Add WebHelp MCP Server configuration to your Cursor settings:
Replace
webhelp-mcp.example.com with your actual WebHelp MCP Server domain.Endpoint formats:- Single site:
/{domain}/{path} - Federated:
/federated/{base64-encoded-urls}
Reload Cursor
Restart Cursor or reload the window:
- Press
Cmd/Ctrl + Shift + P - Type “Developer: Reload Window”
- Press Enter
Usage in Cursor
Chat Panel
Use the@ mention syntax to query specific MCP servers:
Inline AI
Access documentation while coding:- Highlight code that needs documentation
- Press
Cmd/Ctrl + K - Ask about related concepts:
Code Comments
Generate documentation-aware comments:Available Tools
Cursor has access to these WebHelp MCP Server tools:search
Description: Search documentation for relevant content Parameters:query(string): Search query with boolean operator support (AND, OR)
fetch
Description: Retrieve complete document content by ID Parameters:id(string): Document ID from search results
Workflow Examples
Example 1: API Documentation Lookup
Example 2: Error Resolution
Example 3: Code Generation
Advanced Configuration
Workspace-Specific Settings
Create.cursor/settings.json in your project root:
.cursor/settings.json
Environment Variables
Use environment variables for dynamic configuration:settings.json
Custom Keybindings
Add keybindings for quick documentation access:keybindings.json
Troubleshooting
MCP server not appearing in Cursor
MCP server not appearing in Cursor
Solution:
- Verify JSON syntax in settings file
- Check that the URL is correct and accessible
- Reload Cursor window (
Cmd/Ctrl + Shift + P→ “Developer: Reload Window”) - Check Cursor’s developer console for errors (
Help > Toggle Developer Tools)
Connection timeout
Connection timeout
Solution:
- Test the endpoint with curl:
- Verify firewall and network settings
- Check if the server requires authentication
- Try with a local server first to isolate network issues
@mention not working
@mention not working
Solution:
- Ensure you’re using the exact server ID from settings
- Wait a few seconds after typing
@for autocomplete - Check that MCP servers are enabled in Cursor settings
- Verify the server is connected (check status indicator)
Search returns no results
Search returns no results
Solution:
- Verify the documentation site URL is correct
- Try a simpler, broader search query
- Check that the WebHelp site has search enabled
- Test the search directly on the documentation website
Performance Optimization
Caching Strategies
Implement caching for frequently accessed documentation:settings.json
Request Throttling
Limit the number of concurrent requests:settings.json
Integration with Cursor Features
Composer Mode
Use WebHelp MCP Server in Cursor’s Composer mode for multi-file edits:- Press
Cmd/Ctrl + Shift + Ito open Composer - Reference documentation:
- Cursor will generate code across multiple files based on the documentation
Tab Autocomplete
Cursor’s tab autocomplete will use documentation context when available:Next Steps
- Explore Claude Desktop integration for standalone AI assistant
- Learn about ChatGPT integration for web-based access
- Configure Oxygen Positron integration for specialized XML workflows