Prerequisites
Before you begin, ensure you have:- Cursor IDE installed
- Node.js (version 18 or later)
- An MCP key from ShingleAI
Configuration
Cursor supports MCP configuration at both the project and global level.Configuration File Locations
| Scope | Location |
|---|---|
| Project-specific | .cursor/mcp.json in your project directory |
| Global (all projects) | ~/.cursor/mcp.json in your home directory |
Step 1: Create the configuration file
Choose either project-specific or global configuration based on your needs.Step 2: Add ShingleAI server
Add the following configuration to yourmcp.json file:
YOUR_MCP_KEY with your actual MCP key.
Step 3: Use environment variables (recommended)
For better security, use environment variables:Step 4: Restart Cursor
After saving your configuration, restart Cursor for the changes to take effect.Alternative: UI Configuration
You can also configure MCP servers through Cursor’s settings UI:- Open File > Preferences > Cursor Settings
- Navigate to the MCP section
- Add a new server with the ShingleAI configuration
Verification
To verify the connection is working:- Open Cursor’s AI chat (Cmd+L or Ctrl+L)
- Ask: “What ShingleAI tools do you have access to?”
- Cursor should list the available tools
Example Usage
Once connected, you can use ShingleAI tools in your development workflow:| Task | Example Prompt |
|---|---|
| Find contact info | ”Look up the contact details for our main client” |
| Search communications | ”Find all messages about the API integration” |
| Review history | ”Show the conversation history with the design team” |
Troubleshooting
MCP tools not appearing
MCP tools not appearing
Possible causes:
- Configuration file in wrong location
- Invalid JSON syntax
- Cursor not restarted
- Verify the configuration file path
- Validate your JSON syntax
- Completely restart Cursor (not just reload window)
Authentication errors
Authentication errors
Possible causes:
- Invalid or expired MCP key
- Environment variable not exported
- Verify your MCP key in the ShingleAI dashboard
- Ensure the environment variable is set in the shell that launched Cursor
- Try launching Cursor from terminal:
cursor .
npx command not found
npx command not found
Possible causes:
- Node.js not installed
- PATH not configured correctly
- Install Node.js from nodejs.org
- Verify:
npx --version - If using a Node version manager, ensure it’s initialized in your shell
Cursor currently supports MCP tools but not MCP resources. This means you can call ShingleAI tools (like
createContact, searchMessages) but cannot access read-only MCP resources that some servers provide.