|
| 1 | +# LeadMagic Cursor Plugin |
| 2 | + |
| 3 | +Official LeadMagic plugin for Cursor. It connects Cursor to LeadMagic's hosted MCP server so agents can run credit-aware B2B enrichment, contact discovery, company research, technographics, competitor analysis, job-change checks, and hiring-signal workflows inside Cursor. |
| 4 | + |
| 5 | +## What this plugin adds |
| 6 | + |
| 7 | +- Hosted LeadMagic MCP connectivity for Cursor |
| 8 | +- The current LeadMagic MCP surface: |
| 9 | + - 16 tools across credits, people, company research, and jobs |
| 10 | + - 1 shared docs resource: `leadmagic://docs` |
| 11 | + - 2 built-in prompts: `enrich_lead` and `validate_emails` |
| 12 | +- Four focused Cursor skills: |
| 13 | + - contact enrichment |
| 14 | + - account intelligence |
| 15 | + - prospect list QA |
| 16 | + - signal research |
| 17 | +- A default rule that nudges Cursor to use LeadMagic efficiently and avoid wasteful repeat lookups |
| 18 | + |
| 19 | +## How it works |
| 20 | + |
| 21 | +The plugin points Cursor at LeadMagic's hosted MCP endpoint: |
| 22 | + |
| 23 | +- MCP endpoint: `https://mcp.leadmagic.io/mcp` |
| 24 | +- MCP transport: `http` |
| 25 | +- Auth header: `x-leadmagic-key` |
| 26 | + |
| 27 | +Users provide their API key through the `LEADMAGIC_API_KEY` environment variable, and the plugin passes it through to the hosted MCP server. This mirrors the current hosted MCP setup docs for Cursor. |
| 28 | + |
| 29 | +## What the MCP supports today |
| 30 | + |
| 31 | +The current hosted MCP surface is strongest for: |
| 32 | + |
| 33 | +- checking credit balance with `check_credits` |
| 34 | +- validating and finding work emails |
| 35 | +- enriching people from professional social profile URLs or email addresses |
| 36 | +- finding personal emails and direct mobile numbers |
| 37 | +- researching companies with company search, funding, competitors, and technographics |
| 38 | +- detecting job changes and finding live hiring signals through jobs search |
| 39 | + |
| 40 | +The broader REST API and OpenAPI snapshot include additional surfaces, but this plugin should describe the MCP surface accurately rather than implying every API endpoint is exposed as an MCP tool. |
| 41 | + |
| 42 | +## Repository layout |
| 43 | + |
| 44 | +```text |
| 45 | +.cursor-plugin/plugin.json |
| 46 | +.github/pull_request_template.md |
| 47 | +.github/workflows/validate-plugin.yml |
| 48 | +assets/logo.svg |
| 49 | +mcp.json |
| 50 | +rules/leadmagic-usage.mdc |
| 51 | +skills/*/SKILL.md |
| 52 | +scripts/validate-plugin.mjs |
| 53 | +README.md |
| 54 | +SUBMISSION.md |
| 55 | +``` |
| 56 | + |
| 57 | +## Setup |
| 58 | + |
| 59 | +1. Install the plugin in Cursor from GitHub or after marketplace approval. |
| 60 | +2. Set your API key in your shell or environment: |
| 61 | + |
| 62 | +```bash |
| 63 | +export LEADMAGIC_API_KEY="your_api_key_here" |
| 64 | +``` |
| 65 | + |
| 66 | +3. Restart Cursor or reload the plugin if needed. |
| 67 | +4. Verify the connection by asking Cursor: `"Check my LeadMagic credit balance."` |
| 68 | + |
| 69 | +## Local Development |
| 70 | + |
| 71 | +To load this repository as a local Cursor plugin during development: |
| 72 | + |
| 73 | +```bash |
| 74 | +npm run install:local |
| 75 | +``` |
| 76 | + |
| 77 | +That creates a symlink at `~/.cursor/plugins/local/leadmagic` that points to this repository. Then reload Cursor with `Developer: Reload Window`. |
| 78 | + |
| 79 | +On macOS, if Cursor was launched from the dock or Finder, it may not inherit your shell environment. If `LEADMAGIC_API_KEY` is set in your terminal but LeadMagic still fails inside Cursor, launch Cursor from the same shell session or reload it after exporting the variable in an environment Cursor can see. |
| 80 | + |
| 81 | +If you prefer to configure LeadMagic directly in Cursor instead of through the plugin package, see the hosted setup guide: |
| 82 | + |
| 83 | +- [LeadMagic MCP Setup](https://leadmagic.io/docs/mcp/setup) |
| 84 | +- [LeadMagic MCP Tools](https://leadmagic.io/docs/mcp/tools) |
| 85 | +- [LeadMagic MCP Troubleshooting](https://leadmagic.io/docs/mcp/troubleshooting) |
| 86 | + |
| 87 | +## Companion resources |
| 88 | + |
| 89 | +- OpenAPI snapshot and schema docs: [LeadMagic OpenAPI](https://github.com/LeadMagic/leadmagic-openapi) |
| 90 | +- Product docs index: [leadmagic.io/docs/llms.txt](https://leadmagic.io/docs/llms.txt) |
| 91 | +- Website: [leadmagic.io](https://leadmagic.io) |
| 92 | + |
| 93 | +## Example prompts |
| 94 | + |
| 95 | +- "Check my LeadMagic credit balance." |
| 96 | +- "Validate these prospect emails and tell me which are safe to use." |
| 97 | +- "Find the best work email for Jane Doe at Snowflake." |
| 98 | +- "Enrich this b2b profile and pull any work email or mobile available." |
| 99 | +- "Has this prospect changed jobs recently?" |
| 100 | +- "Research Ramp as an account and tell me the best buying signals." |
| 101 | +- "What tech stack does Ramp use and who are its competitors?" |
| 102 | +- "Find engineering hiring signals for OpenAI and summarize the GTM angle." |
| 103 | + |
| 104 | +## Validation |
| 105 | + |
| 106 | +```bash |
| 107 | +npm run validate |
| 108 | +``` |
| 109 | + |
| 110 | +## Submission |
| 111 | + |
| 112 | +Use `SUBMISSION.md` for ready-to-paste marketplace copy. |
0 commit comments