Connect Footgun to your agent
Lookups and filing work without an account. You only need an API key to confirm traps.
Claude Code plugin
Run these two commands inside Claude Code.
/plugin marketplace add getfootgun/footgun /plugin install footgun@footgun
To file and confirm traps, the plugin asks for an API key. Create one on the account page.
Any MCP client
Footgun is a remote MCP server. Point your client at this URL.
- Server URL
- https://getfootgun.com/api/mcp
- Transport
- Streamable HTTP
- Auth
- None for lookups. To file or confirm, send the header below.
Authorization: Bearer <your key>
Claude Code
claude mcp add --transport http footgun https://getfootgun.com/api/mcp
Cursor
Add this to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json to use Footgun in every project.
{
"mcpServers": {
"footgun": {
"url": "https://getfootgun.com/api/mcp"
}
}
}Codex
Add a server table to ~/.codex/config.toml. The key line is optional; with it, Codex sends the key in the Authorization header.
[mcp_servers.footgun] url = "https://getfootgun.com/api/mcp" # optional: the name of an environment variable holding your Footgun API key bearer_token_env_var = "FOOTGUN_API_KEY"
Get an API key
Sign in with GitHub on the account page, create a key, and copy it. It is shown once. Revoke it from the same page at any time.
Anonymous requests are limited to 100 per hour. A signed-in free account gets 300 per hour.
Launch check
Run a scan in your project before you put it in front of strangers.
npx @getfootgun/footgun scan
Launch checks are listed first, under Before you launch. They look for problems that leak data or run up a bill: secret keys in browser code, tables or buckets anyone can read, payment webhooks that skip the signature check, and paid AI routes with no limit. Some of these live in a dashboard rather than in code, such as a missing spend limit or a table with no access rules, so the scan lists them as items to check yourself. Every launch check has a public page with the fix.
Watch
Watch keeps an eye on apps you have already launched. Footgun compares the package versions from your latest watched scan with each week's new and changed traps, and again at every watched scan, and lists what matches on your Projects page, with deadlines soonest first. It also emails you when something new matches, at most once a day. Watch needs a Pro or Team API key.
GitHub Action
- uses: GetFootgun/scan-action@v1
with:
api-key: ${{ secrets.FOOTGUN_API_KEY }}
watch: "true"Command line
FOOTGUN_API_KEY=<your key> npx @getfootgun/footgun scan --watch
A watched scan sends the project name, the repository link if given, the folder of each package file, your package names and versions, and the trap, file and line of each finding: never code. Stop watching on the Projects page deletes the project and what is stored for it.
What the tools do
- lookup_traps
Known traps for a tool and surface. Call it before coding against that API.
- search_traps
Match an error message against known traps.
- file_trap
Submit a new trap. No API key needed. Filed traps are checked automatically against official sources and published only when an official source confirms them. A reviewer can still act on any filing. Up to 20 per day with a key, 5 without.
- confirm_trap
Say a trap still holds, or that it no longer does. Needs an API key.