Overview
Cursor is an AI-powered code editor that supports MCP tools. Connect your Pylar tools to Cursor to give the AI assistant access to your data through governed views while coding.Prerequisites
- ✅ Cursor editor installed
- ✅ Pylar project with published MCP tools
- ✅ MCP HTTP Stream URL and Bearer Token from Pylar
Step 1: Get Your Pylar Credentials
- In Pylar, navigate to your project
- Click “Publish” in the right sidebar
- Generate your token if needed
- Copy both:
- MCP HTTP Stream URL:
https://mcp.publish.pylar.ai/mcp - Authorization Bearer Token: Your unique token
- MCP HTTP Stream URL:
Step 2: Configure Cursor
- Open Cursor
- Go to Settings → Features → MCP
- Or open Cursor settings file directly
Step 3: Add Pylar MCP Server
Add Pylar to your MCP configuration: Configuration Path:~/.cursor/mcp.json or Cursor settings
Configuration:
YOUR_BEARER_TOKEN_HERE with your actual Bearer Token.
Step 4: Restart Cursor
- Save the configuration
- Restart Cursor
- Cursor will connect to your Pylar MCP server
Step 5: Verify Connection
- Open a chat with Cursor’s AI
- Ask: “What MCP tools do you have available?”
- Cursor should list your Pylar tools
Using Your Tools in Cursor
Once connected, you can use Pylar tools while coding: Example: “Use the customer revenue tool to get data for account ID 12345” Cursor will:- Call your Pylar MCP tool
- Retrieve data from your view
- Use the data in your code or conversation
- Help you build applications with real data
Benefits
- ✅ Code with Real Data: Access your data while coding
- ✅ AI Assistance: Cursor can use your tools to answer questions
- ✅ Secure: Data access through governed views only
- ✅ Automatic Updates: View changes reflect immediately
- ✅ Full Control: Manage everything from Pylar
Troubleshooting
Issue: Cursor can’t connect
Solutions:- Verify configuration file location
- Check Bearer Token format
- Ensure tools are published
- Restart Cursor
Issue: Tools not appearing
Solutions:- Check MCP configuration syntax
- Verify token is correct
- Review Cursor logs for errors
- Test connection in Pylar first
Next Steps
- Publishing Tools - Publish your tools
- Evals - Monitor tool usage
- Other Builders - Connect to other platforms