How do I run a smart contract audit from Cursor?

To run a smart contract audit from Cursor, put the QuillShield MCP config in Cursor's mcp.json with an API key that an owner or admin of your QuillShield organization created, then ask Cursor's agent to quote an audit of your Foundry repo. The agent shows you the fixed price, starts the QuillShield audit only after you confirm, and lists the findings in the chat once the audit is complete.

Last updated . 5 minute read. By the QuillAudits Team.

What does QuillShield add to Cursor?

Cursor's agent can call tools from MCP servers that you list in an mcp.json file. With the QuillShield MCP server, @quillaudits/mcp, those tools quote, start and follow a full QuillShield audit of the Solidity in scope. QuillShield builds a security graph of the code, a separate reviewer agent tries to disprove every finding before you see it, and each finding that holds up comes with the exact lines, the impact, a recommended fix and, on full audits, the proof of concept result.

It is for teams writing Solidity in Foundry projects in Cursor who want the code audited before a manual audit or between audits, with the price shown and confirmed in the same chat.

Where does the QuillShield config go in Cursor?

File Applies to Keeping the key safe
~/.cursor/mcp.json Every project you open in Cursor The file sits in your home folder, outside any repository
.cursor/mcp.json in the project root This project only Add the file to .gitignore, because the key is in it

Both paths come from Grafana's Cursor MCP setup docs and a Cursor forum thread, and Grafana's docs also show how to add a server from Cursor's settings, under Tools & Integrations. The global file is the safer home for a key, because nothing in it can be committed by accident.

How do I set up QuillShield in Cursor?

  1. Sign up for QuillShield. Sign-up is free, and new accounts get $50 in credit, good for up to half of an order.
  2. An owner or admin of the organization creates a key at Settings, API keys. The qs_live_ key is shown once, and Cursor's agent can't create it.
  3. Copy the MCP config from the same page. When an owner or admin creates an API key, the API keys page shows the MCP config for Cursor and Claude.
  4. Paste it into ~/.cursor/mcp.json, or into the project's .cursor/mcp.json with that file listed in .gitignore. The server needs Node.js 18 or later.
  5. If you plan to start audits, top up the wallet under Billing in the dashboard.
  6. Open an agent chat in Cursor and ask “Check my QuillAudits wallet”. If the agent answers with your balance, the setup works.

~/.cursor/mcp.json with the QuillShield MCP server, adapted from the QuillShield docs mcp.json

{
  "mcpServers": {
    "quillaudits": {
      "command": "npx",
      "args": ["-y", "@quillaudits/mcp"],
      "env": {
        "QUILLSHIELD_API_KEY": "qs_live_..."
      }
    }
  }
}

If your file already lists other servers, add the quillaudits entry inside the existing mcpServers object. The MCP for Cursor and Claude page in the QuillShield docs has the full reference.

What do I ask Cursor's agent?

You ask Tool the agent calls What you get
Show my QuillAudits wallet get_wallet Your prepaid balance, refund credit and new-account credit
Quote an audit of this repo on main. Don't pay yet. submit_audit with pay: false A fixed US dollar quote for the Solidity in scope
The wallet covers it. Confirm and start the audit. pay_quote with confirm: true The audit starts, paid from the wallet
Watch the audit, then list the findings. watch_audit, then list_findings Status updates, then the findings once the audit is complete
Give me the report as Markdown. get_report The report, which also comes as JSON or PDF

Our guide How do I run a first QuillShield audit from Cursor or Claude? has one prompt that scopes the repo, gets the quote and waits for your confirm before anything is charged. If the wallet is short, the agent shows the shortfall and the link to top up, and the guide What do I do if QuillShield says the wallet cannot cover the quote? covers that case.

What can't Cursor's agent do?

  • Sign up, sign in or create an API key. QuillShield has no headless or device-code sign-in, so a person does that once.
  • Take a card. Card payments and top-ups stay in the dashboard, and the agent spends only from the organization wallet after an explicit confirm.
  • Open Ask AI about a finding or create a share link. Both stay in the dashboard.
  • Turn on pull request checks. They need a GitHub or GitLab.com repository and are set up in the dashboard, as our QuillShield GitHub App page shows. An uploaded zip gets a full audit and no checks.
  • Audit code that isn't Solidity in a Foundry project, which is what QuillShield supports today. Our Foundry page covers what to put in scope.

The same server runs in Claude Code, set up as our Claude Code page shows, and our QuillShield MCP server page lists all 18 tools. For audits started from a terminal or CI, use the QuillShield CLI.

FAQ

Where should the QuillShield API key live in Cursor?

In the env block of ~/.cursor/mcp.json, or of a project .cursor/mcp.json that is listed in .gitignore. Never put it in a chat message, a prompt, a commit or a pull request.

Can I start the server with the QuillShield CLI instead?

Yes. npx -y @quillaudits/cli mcp starts the same server from QuillShield CLI 0.2.3 and later, so set args to ["-y", "@quillaudits/cli", "mcp"]. Both commands need Node.js 18 or later.

What does an audit from Cursor cost?

The same as in the dashboard. A full audit starts at $49, and 1,000 lines of Solidity cost $379, as of November 2026. You see the exact price before anything is charged. New accounts get $50 in credit, good for up to half of an order, and the rest comes from a prepaid top-up, because the agent can't take a card.

What happens if the organization wallet can't cover the quote?

The tool returns wallet_topup_required with the shortfall and shield.quillaudits.com/topup. You top up by card in the dashboard, then the agent checks the wallet again and waits for your confirm.

Which projects can I audit from Cursor?

Solidity in Foundry projects, sent as a git URL, a local folder or a zip. Only a GitHub or GitLab.com repository can get pull request checks after the audit, and QuillShield does not replace a manual audit.

Sources

QuillShield is building the security layer between AI and money, so you can keep shipping between audits.

Sign-up is free, and new accounts get $50 in credit, good for up to half of an order.

  1. 1Sign up and import a repo
  2. 2See the exact price before anything is charged
  3. 3Approve it, and the audit starts