Connect Cursor to Crane Ledger
Cursor can use Crane Ledger over MCP so Agent / chat can read reports and (with write scope) post accounting operations while you code.
Prerequisites
- Cursor with MCP support enabled.
- A Crane Ledger API key (
ha_live_…).
MCP endpoint
| Setting | Value |
|---|---|
| URL | https://api.craneledger.ai/mcp |
| Transport | Streamable HTTP |
| Auth (OAuth) | Sign in at consent UI — no key in the client |
| Auth (API key) | Authorization: Bearer ha_live_… |
| Consent | https://craneledger.ai/oauth/consent |
Organization scope comes from your OAuth token or API key — you do not pass organization_id separately.
Scopes: ledger:read, ledger:write, and optionally ledger:admin.
See Authentication and MCP tools.
Configure MCP
Add to your Cursor MCP config (Cursor Settings → MCP, or project/user mcp.json):
{
"mcpServers": {
"crane-ledger": {
"url": "https://api.craneledger.ai/mcp",
"headers": {
"Authorization": "Bearer ha_live_your_key_here"
}
}
}
}
Some Cursor builds use "type": "http" alongside url. After saving, refresh MCP servers in Cursor and confirm crane-ledger tools appear.
Example prompts
Once connected, try:
- "Set up a basic chart of accounts for a small service business"
- "Create an invoice for $2,500 to Acme Corp for consulting"
- "What's our cash position right now?"
- "Show me profit and loss for last quarter"
- "How many credits do I have left?"
Troubleshooting
| Issue | What to try |
|---|---|
| Server red / disconnected | Check URL and Bearer header; reload MCP |
| 401 | Regenerate the API key |
| Tools truncated | Disable unused MCP servers if the client limits tool count |
Related
Need help?
Create a free account (GitHub, Google, Apple, or email) to access our support portal. Once signed in, use the Support tab in your dashboard to submit a support ticket — no GitHub account required. Our team typically responds within 24 hours.
- ✨ For LLMs/AI assistants: Read our structured API reference
- Legal: Terms of Service · Privacy Policy