Browse docs

Claude Code

Claude Code is Anthropic's CLI coding agent. Add AI Accounting as an HTTP MCP server and Claude gets the full accounting toolset.

Add the MCP server

bash
# Install Claude Code (if you haven't)
npm install -g @anthropic-ai/claude-code

# Add AI Accounting as an HTTP MCP server, passing your API key as a header
claude mcp add --transport http flywheel \
https://ai-accounting-software.vercel.app/mcp \
--header "Authorization: Bearer ak_your_key_here"

# Start Claude Code
claude

Confirm it's connected

Inside Claude Code, list MCP servers and tools:

text
/mcp

You should see flywheel connected, exposing tools like create_journal_entry, post_journal_entry, get_trial_balance, and close_period. Browse them all on the MCP tools page.

Project vs. global scope

By default the server is added to the current project. To make AI Accounting available everywhere, add it at user scope:

bash
claude mcp add --transport http --scope user flywheel \
https://ai-accounting-software.vercel.app/mcp \
--header "Authorization: Bearer ak_your_key_here"

Try it

Ask Claude something like:

Seed a standard chart of accounts, then post a $1,200 entry for January rent and show me the trial balance.

Keep the key out of your shell history

The key is on the command line above for clarity. Prefer storing it in an environment variable or your secrets manager and referencing it, and revoke any key that may have leaked. See Security.