QuillShield MCP server: smart contract audits from your AI agent
The QuillShield MCP server is the npm package @quillaudits/mcp, and it starts with npx -y @quillaudits/mcp. It gives an AI agent such as Cursor or Claude the tools to quote a QuillShield audit of your Solidity, start it once you confirm and read back the findings and the report, spending only from your organization wallet.
What does the QuillShield MCP server do?
The server connects an agent to your QuillShield organization through an API key. The agent can list your projects, quote a full audit of a git repository, a local folder or a zip, start it from the organization wallet after you say yes, follow it, and fetch the findings and the report. QuillShield runs the audit on its side: it builds a security graph of the code, a separate reviewer agent tries to disprove every finding before you see it, and full audits come with proofs of concept.
It is for teams shipping Solidity in Foundry projects who already work in an agent and want the audit in the same chat. The QuillShield CLI, version 0.2.3 and later, runs the same server with npx -y @quillaudits/cli mcp, so either command works. Both need Node.js 18 or later.
How do I set up the QuillShield MCP server?
- Sign up for QuillShield. Sign-up is free, and new accounts get $50 in credit, good for up to half of an order.
- An owner or admin of the organization opens Settings, API keys and clicks Create key. Sign in first, because a signed-out visit goes to the sign-in page and then to the dashboard. The
qs_live_key is shown once. - Copy the MCP config from the same page. When an owner or admin creates an API key, the API keys page in Settings shows the MCP config for Cursor and Claude.
- Paste it into your agent's MCP settings: Cursor, Claude Code or Claude Desktop. Keep the key in the config's
envblock or in theQUILLSHIELD_API_KEYenvironment variable, never in a chat message, a prompt, a commit or a pull request. - If you plan to start audits, top up the prepaid balance under Billing in the dashboard. The new-account credit covers up to half of an order, and the agent can't take a card, so the rest has to be in the wallet already.
- Ask the agent “Check my QuillAudits wallet” or “List my QuillAudits projects”. If it answers with your balance or your projects, the server is working.
MCP config for Cursor, Claude Code or Claude Desktop, adapted from the QuillShield docs mcp.json
{
"mcpServers": {
"quillaudits": {
"command": "npx",
"args": ["-y", "@quillaudits/mcp"],
"env": {
"QUILLSHIELD_API_KEY": "qs_live_..."
}
}
}
}
To run the server through the CLI instead, set args to ["-y", "@quillaudits/cli", "mcp"]. QUILLSHIELD_API_URL is optional and defaults to QuillShield's production API, and QUILLSHIELD_ORG_ID can stay out too, because each key belongs to one organization. If you have already run qs init from the CLI, the server can read the key from the ~/.quillshield/config.json file it saved.
Without a key the server still starts, but every tool returns an error that begins “Not configured. Set QUILLSHIELD_API_KEY”. That message means a person has to create the key and add it.
What can the agent do on its own, and what must a person do?
| Step | Who does it | Where |
|---|---|---|
| Sign up and create the organization | A person | shield.quillaudits.com/register |
Create the qs_live_ API key |
An owner or admin | Settings, API keys |
| Put the key in the MCP config or the environment | A person | The agent's MCP settings |
| Top up the wallet by card | A person | Billing in the dashboard |
| Quote an audit of a repository, folder or zip | The agent | submit_audit with pay: false |
| Agree to the price | A person, in the chat | The agent then calls pay_quote with confirm: true |
| Follow the audit and read the results | The agent | watch_audit, list_findings, get_report |
QuillShield has no headless or device-code sign-in, so an agent can't sign up, create its own key or pay by card. A person does those steps once, and the agent works from the key after that.
Which tools does the QuillShield MCP server give the agent?
| Tool | Kind | What it does |
|---|---|---|
list_projects, list_versions |
Read | Your organization's projects and their versions |
list_audits, get_audit |
Read | Audit jobs, and the status of one job |
list_findings |
Read | The findings of a job, once the audit is complete |
get_report |
Read | The report as Markdown or JSON, or the PDF |
get_wallet |
Read | Prepaid balance, refund credit and new-account credit |
get_quote, get_order, list_orders |
Read | Quotes and payment state |
submit_audit |
Write | Sends a git URL, a local folder or a zip and returns a quote |
create_quote |
Write | Quotes a version that is already in QuillShield |
apply_coupon, remove_coupon |
Write | Adds or removes a coupon code on a quote, as dashboard checkout does |
pay_quote |
Write | Starts the audit from the wallet, and only with confirm: true |
start_audit |
Write | Retries the start of an order that is already paid |
cancel_audit |
Write | Cancels a running audit |
watch_audit |
Write | Polls the audit's status for about 20 seconds per call |
Some things stay in the dashboard and are not available to the agent: card payments through Stripe Checkout, top-ups, Ask AI chat about findings and share links.
How does the agent pay for an audit?
Every audit starts with a quote, a fixed US dollar price from the lines of Solidity in scope, the same price the dashboard shows. A full audit starts at $49, and 1,000 lines cost $379, as of November 2026. A quote stays valid for 7 days. The wallet covers it from the prepaid balance first, then any refund credit, then the new-account credit, which is good for up to half of an order.
- If the wallet covers the quote, the agent must call
pay_quotewithconfirm: true, orsubmit_auditwithpay: trueandconfirm: true. Without it the tool returnsconfirm_requiredand spends nothing. - If anything is still due, the tool returns
wallet_topup_requiredwith the shortfall and the link shield.quillaudits.com/topup. The agent stops, you top up by card in the dashboard, and the agent checks the wallet again. - Charges made with an API key spend the wallet of the organization's owner.
Our guide What do I do if QuillShield says the wallet cannot cover the quote? has a prompt for that case.
What are the limits of the QuillShield MCP server?
- It audits Solidity in Foundry projects, which is what QuillShield supports today.
- Pull request checks need a GitHub or GitLab.com repository, and you switch them on in the dashboard, not from the agent. An uploaded zip gets a full audit and no pull request checks. See the QuillShield GitHub App.
- One audit runs at a time in an organization.
- Findings show once an audit is complete, so until then
watch_auditreports the status. - Scopes above 40,000 lines of Solidity are quoted by hand.
- QuillShield does not replace a manual audit. It reviews every change between audits, and you can request a manual audit from QuillAudits.
Should I use the MCP server, the CLI or the dashboard?
| What differs | Dashboard | CLI | MCP server |
|---|---|---|---|
| Who drives it | You, in the browser | You, or a script in CI | An AI agent |
| Card payment | Yes, through Stripe Checkout | Yes, through Stripe Checkout in the browser | No, wallet only |
| Spending from the wallet | After you approve the quote at checkout | Straight away when the wallet covers the quote, so use --no-pay to see it first |
Only with confirm: true, after you say yes |
| Local folder or zip | Upload in the browser | --dir or --zip |
A folder or zip path in submit_audit |
For scripts and CI, use the QuillShield CLI. For a first audit from an agent, our guide How do I run a first QuillShield audit from Cursor or Claude? gives you one prompt to paste. If your project is a Foundry repo, the Foundry page covers what to put in scope.
The MCP for Cursor and Claude page in the QuillShield docs is the full reference, with every error the tools return.
FAQ
Which package is the official QuillShield MCP server?
@quillaudits/mcp on npm, version 0.1.0, published on 1 December 2026, and the QuillShield CLI from version 0.2.3 runs the same server. A skill listed as QuillShield on MCP Market comes from another developer, not from QuillAudits.
Can the agent create its own API key or pay by card?
No. An owner or admin creates the qs_live_ key in Settings, and card payments and top-ups stay in the dashboard. The agent spends only from the organization wallet, and only after an explicit confirm step.
What does an audit through the MCP server cost?
The same as in the dashboard. The price comes from the lines of Solidity in scope and starts at $49, and 1,000 lines cost $379, as of November 2026. You see the exact price before anything is charged, and new accounts get $50 in credit, good for up to half of an order.
Does the QuillShield MCP server work with Claude Code and Cursor?
Yes. Both read the same mcpServers block, and our pages on Claude Code and Cursor show where it goes in each.
Does it replace a manual audit?
No. QuillShield does not replace a manual audit. It reviews every change between audits, and you can request a manual audit from QuillAudits.
Sources
- MCP for Cursor and Claude, QuillShield docs, QuillAudits checked 3 December 2026
- API keys, QuillShield docs, QuillAudits checked 3 December 2026
- @quillaudits/mcp 0.1.0 on npm, npm checked 3 December 2026
- @quillaudits/cli 0.2.3 on npm, npm checked 3 December 2026
- QuillShield skill listing, MCP Market, MCP Market checked 3 December 2026