Overview
The AnySite MCP Tool for Cursor provides seamless integration between Cursor IDE and the AnySite API through the Model Context Protocol (MCP). This allows you to access LinkedIn, Instagram, Reddit, and other social media data extraction tools directly within your Cursor AI coding sessions.Prerequisites
- Cursor IDE installed (download here)
- Node.js and npm installed (for NPX method)
- AnySite API account with active subscription
- Basic familiarity with JSON configuration
Why Cursor Integration?
AI-Powered Coding
Access data extraction tools while coding with Cursor’s AI assistant
Project Integration
Configure MCP per-project or globally for all your workspaces
Real-time Data
Extract social media data directly in your development workflow
Developer Friendly
JSON-based configuration that’s easy to version control and share
Installation Steps
Step 1: Get Your API Key
First, obtain your API key from the AnySite dashboard:- Visit app.anysite.io and log in to your account
- Navigate to MCP Server Integration section
- Copy your API key from the dashboard
Step 2: Configure MCP in Cursor
There are two ways to configure MCP in Cursor:- Project Configuration (Recommended)
- Global Configuration
Create a Steps:
.cursor/mcp.json file in your project root:- Open your project in Cursor
- Create
.cursordirectory in project root (if it doesn’t exist) - Create
mcp.jsonfile inside.cursordirectory - Paste the configuration above
- Replace
YOUR_API_KEYwith your actual API key - Restart Cursor or reload the window
Project-specific configuration is ideal for team collaboration. Add
.cursor/mcp.json to .gitignore if your API key is included directly.command: "npx"- Uses npx to run the MCP packageargs: ["-y", "@anysiteio/mcp"]- Auto-confirms and runs the AnySite MCP packageANYSITE_API_KEY- Your API key from the AnySite dashboardANYSITE_ACCOUNT_ID- Optional account ID (leave empty if not needed)
Step 3: Using Environment Variables (Secure Method)
For better security, use environment variables instead of hardcoding the API key: Option 1: Shell Environment Add to your shell profile (~/.zshrc, ~/.bashrc):
mcp.json:
.env file in your project root:
Step 4: Verify Installation
After configuration, verify the MCP server is working:- Restart Cursor or reload the window (Cmd/Ctrl + Shift + P → “Reload Window”)
-
Open Cursor AI Chat and ask:
-
Test with a simple request:
If everything is working correctly, Cursor AI will list the available AnySite tools and be able to execute data extraction requests.
Managing Your Connection
Update Configuration
To update your API key or other settings:- Edit the
mcp.jsonfile - Save the changes
- Restart Cursor or reload the window
Remove MCP Server
To remove the AnySite MCP integration:- Delete the
anysiteentry from yourmcp.jsonfile - Or delete the entire
mcp.jsonfile if not using other MCP servers - Restart Cursor
Multiple MCP Servers
You can configure multiple MCP servers in the same file:Troubleshooting
MCP server not connecting
MCP server not connecting
Solutions:
- Ensure Node.js and npm are installed and in your PATH
- Verify the API key is valid and active
- Check internet connectivity
- Restart Cursor completely
- Check the Cursor logs for error messages
Tools not appearing in Cursor AI
Tools not appearing in Cursor AI
Solutions:
- Reload the Cursor window (Cmd/Ctrl + Shift + P → “Reload Window”)
- Verify the
mcp.jsonfile syntax is correct (valid JSON) - Check that the file is in the correct location
- Ensure your AnySite subscription is active
NPX command not found
NPX command not found
Solutions:
- Install Node.js from nodejs.org
- Ensure npm is in your system PATH
- Try running
npx --versionin terminal to verify - On Windows, you may need to restart after Node.js installation
Invalid JSON syntax error
Invalid JSON syntax error
Solutions:
- Validate your JSON at jsonlint.com
- Check for missing commas, brackets, or quotes
- Ensure no trailing commas after the last item in objects/arrays
- Use a JSON formatter extension in your editor
API key not working
API key not working
Solutions:
- Verify the API key is correct (no extra spaces)
- Check if your AnySite subscription is active
- Try generating a new API key from the dashboard
- Ensure the key has the necessary permissions
Environment variables not loading
Environment variables not loading
Solutions:
- Restart your terminal/shell after adding env vars
- Start Cursor from the terminal:
cursor . - On macOS, GUI apps may not inherit shell env vars
- Try using the direct API key method to test
Security Best Practices
Environment Variables
Store API keys in environment variables, never hardcode in configuration files
Git Ignore
Always add
.cursor/mcp.json and .env to .gitignoreKey Rotation
Regularly regenerate API keys from AnySite dashboard
Audit Access
Review API usage periodically in your AnySite dashboard
Comparison: Cursor vs Other Integrations
| Feature | Cursor | Claude Code (CLI) | Claude Desktop |
|---|---|---|---|
| Interface | IDE integrated | Command line | Desktop app |
| Setup | JSON config | Terminal command | OAuth GUI |
| Best For | AI-assisted coding | Developers, automation | General users |
| Project Scope | Per-project config | Multiple scopes | Global only |
| Version Control | .cursor/mcp.json | .mcp.json | Not applicable |
Next Steps
Need Help?
Get Support
Contact our support team for assistance with Cursor MCP integration