# Use FoxAPIs in Claude Code: connect and first prompts

Source page: https://foxapis.com/integrations/claude-code/
All pages for agents: https://foxapis.com/llms.txt

[Home](https://foxapis.com/) · [Integrations](https://foxapis.com/integrations/) · Claude Code

# Use FoxAPIs in Claude Code.

Claude Code adds a remote MCP server with one command. After it, the ten FoxAPIs tools are available in the terminal session. FoxAPIs adds sourced people and company facts, paid per call in credits (nothing is charged when a call returns nothing): [what it can answer](https://foxapis.com/mcp/), [prices](https://foxapis.com/pricing).

## Connect FoxAPIs to Claude Code

MCP address: https://foxapis.com/mcp (Streamable HTTP). Header: Authorization: Bearer YOUR_KEY. Your key starts with fxp_.

- Run the command below in a terminal, with your key in place of YOUR_KEY.
- Start Claude Code and ask it to list its MCP tools; the FoxAPIs tools should appear.

### Add the server

```
claude mcp add --transport http foxapis https://foxapis.com/mcp \
--header "Authorization: Bearer YOUR_KEY"
```

The same command is shown, with its source and date, on /mcp/.

Get a key at [the sign-up page](https://foxapis.com/trial). The tools and the price of each call are listed on [the MCP page](https://foxapis.com/mcp/); the REST reference is [the developer docs](https://foxapis.com/docs/) and the whole API as a file is [openapi.json](https://foxapis.com/openapi.json).

## Three Claude Code prompts that name FoxAPIs

- Build a lead card: enrich the founder of acme.com with FoxAPIs and show the sourced fields.
- Use FoxAPIs to find a work email for Jane Example at acme.com, and say so when nothing is found instead of guessing.
- Add a "Check this company" button that calls FoxAPIs from the terminal and shows what it returns with its sources.

## Keep the key safe in Claude Code

- Call FoxAPIs from a backend or an edge function, and keep the key as a secret there. Never put it in code that runs in a visitor's browser.
- Set a monthly credit limit for the key on your [account page](https://foxapis.com/account) before you share a project.
- If a key is ever pasted into a chat or a public file, delete it and create a new one.

## A rules file for Claude Code

A plain-text file for the agent that writes your code: the key stays a server-side secret, calls are made from the server, every fact keeps its source, an empty field stays empty, and one real call with its real answer. [Download foxapis-agent-rules.txt](https://foxapis.com/integrations/foxapis-agent-rules.txt).

Claude Code reads project instructions from CLAUDE.md in the project root, or from .claude/CLAUDE.md ([its memory docs](https://code.claude.com/docs/en/memory), read 2 December 2026): paste the file's text there.

## Start Claude Code from a template

Open-source starter apps that call FoxAPIs: a lead finder, a company check, a funding tracker and a Supabase edge function. Each one has a Deploy on Vercel link that asks for your key. [foxapis-templates on GitHub](https://github.com/OsakaSaul/foxapis-templates)

## The one thing to know about Claude Code

The command stores the key in your local Claude Code configuration. Do not share that file.

FoxAPIs is not affiliated with or endorsed by Claude Code. Config shapes are shown as that tool's own documentation describes them; where we did not run one, the page says so.

[All integrations](https://foxapis.com/integrations/) · [MCP server](https://foxapis.com/mcp/) · [Developer docs](https://foxapis.com/docs/)
