PocketSmith MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with PocketSmith MCP or direct API to review accounts, analyze transactions, track budgets, and forecast cash flow through natural language.

PocketSmith logoPocketSmith
Api Key

PocketSmith is a personal finance platform for accounts, transactions, budgets, and cash-flow forecasts. Use it to understand spending, plan ahead, and make better money decisions.

14 Tools

Try PocketSmith now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
PocketSmith
Try asking
TOOLS

Supported Tools

Every PocketSmith action and event your agent gets out of the box.

Create Category

Create one category for a PocketSmith user with optional hierarchy and budgeting behavior.

Create Transaction

Create one transaction in a specified transaction account and return the created financial record.

Get Budget

Return a PocketSmith user's current category-level actual and forecast budget analysis.

Get Budget Summary

Analyze the user's combined income and expense budget over a required date range and period interval.

Get Current User

Return the PocketSmith user authorized by the connected developer key, including the user ID needed by user-scoped tools.

Get Transaction

Return one PocketSmith transaction by ID with its amount, date, payee, category, labels, and review state.

List Accounts

Return all financial accounts belonging to a PocketSmith user, including account, primary transaction-account, and scenario IDs.

List Categories

Return all categories belonging to a PocketSmith user, including hierarchy and budgeting flags.

List Transaction Accounts

Return the transaction accounts belonging to a PocketSmith user, including IDs and balances needed to create and query transactions.

List Transactions

Return one page of a user's transactions with optional date, state, type, and keyword filters, plus a cursor for the next page.

Update Account

Update selected metadata on one financial account without deleting it or changing transaction-account balances.

Update Category

Update selected hierarchy, display, and budgeting fields on one category without deleting it.

Update Transaction

Update selected fields on one existing transaction without deleting or splitting it.

Update Transactions

Update 1-20 distinct transactions sequentially.

SETUP GUIDE

Connect PocketSmith MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK for Python or TypeScript
2

Initialize Client and Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
Import and initialize the Composio client, then create a Tool Router session for PocketSmith
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'Compare my PocketSmith budget forecast against actual spending'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent (Anthropic Claude or Mastra)
SETUP GUIDE

Connect PocketSmith API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute PocketSmith Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'Summarize my PocketSmith spending by category for this month'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute PocketSmith actions with your Agent

Why Use Composio?

AI Native PocketSmith Integration

  • Supports both PocketSmith MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable finance workflows
  • Rich coverage for accounts, transactions, budgets, categories, and forecast data

Managed API Key Auth

  • Securely store PocketSmith API keys instead of hard-coding them in your agent
  • Use auth_configs.create() and connected_accounts.link() to configure user-level PocketSmith access
  • Keep per-user and per-environment credentials separate, clean, and easy to revoke

Agent Optimized Design

  • Tools are shaped so agents can understand PocketSmith data without brittle custom code
  • Clear inputs and outputs help agents answer real questions like “where did my money go this month?”
  • Comprehensive execution logs show what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access PocketSmith
  • Scoped, least privilege access to personal finance resources
  • Full audit trail of agent actions to support review, debugging, and compliance
FAQ

Frequently asked questions

Yes, PocketSmith requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with PocketSmith.It takes 30 seconds.

Managed auth, hosted MCP servers, and every PocketSmith tool your agent needs.Free to start.

Start building