# PocketSmith

```json
{
  "name": "PocketSmith",
  "slug": "pocketsmith",
  "url": "https://composio.dev/toolkits/pocketsmith",
  "markdown_url": "https://composio.dev/toolkits/pocketsmith.md",
  "logo_url": "https://logos.composio.dev/api/pocketsmith",
  "categories": [
    "finance & accounting"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-08-20T15:33:42.118Z"
}
```

![PocketSmith logo](https://logos.composio.dev/api/pocketsmith)

## Description

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.

## Summary

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.

## Categories

- finance & accounting

## Toolkit Details

- Tools: 14

## Images

- Logo: https://logos.composio.dev/api/pocketsmith

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for PocketSmith.
  - Setup:
    - Configure Api Key credentials for PocketSmith.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Summarize spending by category this month
- List recent transactions over two hundred
- Compare budget forecast against actual spending

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `POCKETSMITH_CREATE_CATEGORY` | Create Category | Create one category for a PocketSmith user with optional hierarchy and budgeting behavior. |
| `POCKETSMITH_CREATE_TRANSACTION` | Create Transaction | Create one transaction in a specified transaction account and return the created financial record. |
| `POCKETSMITH_GET_BUDGET` | Get Budget | Return a PocketSmith user's current category-level actual and forecast budget analysis. During probing, this read coincided with forecast cache access/update timestamps changing to the call timestamp and the forecast start date also changing; PocketSmith may therefore refresh derived forecast-cache metadata while serving it, although the probe did not establish that every call does so. |
| `POCKETSMITH_GET_BUDGET_SUMMARY` | Get Budget Summary | Analyze the user's combined income and expense budget over a required date range and period interval. |
| `POCKETSMITH_GET_CURRENT_USER` | Get Current User | Return the PocketSmith user authorized by the connected developer key, including the user ID needed by user-scoped tools. |
| `POCKETSMITH_GET_TRANSACTION` | Get Transaction | Return one PocketSmith transaction by ID with its amount, date, payee, category, labels, and review state. |
| `POCKETSMITH_LIST_ACCOUNTS` | List Accounts | Return all financial accounts belonging to a PocketSmith user, including account, primary transaction-account, and scenario IDs. |
| `POCKETSMITH_LIST_CATEGORIES` | List Categories | Return all categories belonging to a PocketSmith user, including hierarchy and budgeting flags. |
| `POCKETSMITH_LIST_TRANSACTION_ACCOUNTS` | List Transaction Accounts | Return the transaction accounts belonging to a PocketSmith user, including IDs and balances needed to create and query transactions. |
| `POCKETSMITH_LIST_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. |
| `POCKETSMITH_UPDATE_ACCOUNT` | Update Account | Update selected metadata on one financial account without deleting it or changing transaction-account balances. |
| `POCKETSMITH_UPDATE_CATEGORY` | Update Category | Update selected hierarchy, display, and budgeting fields on one category without deleting it. |
| `POCKETSMITH_UPDATE_TRANSACTION` | Update Transaction | Update selected fields on one existing transaction without deleting or splitting it. |
| `POCKETSMITH_UPDATE_TRANSACTIONS` | Update Transactions | Update 1-20 distinct transactions sequentially. The operation is not atomic: successful updates are not rolled back, each item has an explicit outcome, and processing stops after an authentication, permission, rate-limit, server, unexpected-response, or ambiguous transport failure. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK
```python
pip install composio_openai
```

```typescript
npm install @composio/openai
```

#### Path 1, Step 2: Initialize Composio and Create Tool Router Session

Import and initialize Composio client, then create a Tool Router session
```python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
```

```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');
```

#### Path 1, Step 3: Execute PocketSmith Tools via Tool Router with Your Agent

Get tools from Tool Router session and execute PocketSmith actions with your Agent
```python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Summarize my PocketSmith spending by category for this month'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
```

```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);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK for Python or TypeScript
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
```

#### Path 2, Step 2: Initialize Client and Create Tool Router Session

Import and initialize the Composio client, then create a Tool Router session for PocketSmith
```python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
```

```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}`);
```

#### Path 2, Step 3: Connect to AI Agent

Use the MCP server with your AI agent (Anthropic Claude or Mastra)
```python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to PocketSmith tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('List my recent PocketSmith transactions over 100 dollars')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
```

```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}`);
```

## Why Use Composio?

### 1. 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

### 2. 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

### 3. 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

### 4. 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

## Use PocketSmith with any AI Agent Framework

Choose a framework you want to connect PocketSmith with:

None listed.

## Related Toolkits

- [Stripe](https://composio.dev/toolkits/stripe) - Stripe is a global online payments platform offering APIs for managing payments, customers, and subscriptions. Trusted by businesses for secure, efficient, and scalable payment processing worldwide.
- [44API](https://composio.dev/toolkits/44api) - 44API is an API service for validating VAT and tax identifiers and returning company details. Use it to verify business tax data and manage account IP whitelists quickly.
- [Aiwyn Tax MCP](https://composio.dev/toolkits/aiwyn_tax_mcp) - Aiwyn Tax MCP is a tax estimation service powered by Aiwyn's federal and state tax engine. It helps teams estimate tax outcomes without building tax calculation logic from scratch.
- [Alpaca](https://composio.dev/toolkits/alpaca) - Alpaca is a stock and crypto trading platform for commission-free trading, real-time market data, and algorithmic strategies. Use it to build brokerage apps, trading bots, and portfolio workflows with market connectivity.
- [Alpha vantage](https://composio.dev/toolkits/alpha_vantage) - Alpha Vantage is a financial data platform offering real-time and historical stock market APIs. Get instant, reliable access to equities, forex, and technical analysis data for smarter trading decisions.
- [Altoviz](https://composio.dev/toolkits/altoviz) - Altoviz is a cloud-based billing and invoicing platform for businesses. It streamlines online payments, expense tracking, and customizable invoice management.
- [Benzinga](https://composio.dev/toolkits/benzinga) - Benzinga provides real-time financial news and data APIs for market coverage. It helps you track breaking news and actionable market insights instantly.
- [Billsby](https://composio.dev/toolkits/billsby) - Billsby is a subscription billing platform for managing customers, subscriptions, invoices, products, plans, usage counters, add-ons, and allowances. It helps SaaS and subscription teams automate billing operations without building complex billing logic from scratch.
- [Brex](https://composio.dev/toolkits/brex) - Brex provides corporate credit cards and spend management tailored for startups and tech businesses. It helps optimize company cash flow, streamline accounting, and accelerate business growth.
- [Chaser](https://composio.dev/toolkits/chaser) - Chaser is accounts receivable automation software that sends invoice reminders and helps businesses get paid faster. It streamlines the collections process to save time and improve cash flow.
- [Clarity AI MCP](https://composio.dev/toolkits/clarity_ai_mcp) - Clarity AI MCP is an MCP toolkit for simulating SFDR 2.0 fund classifications from a fund name, ISIN, or CUSIP. Use it to tap Clarity AI disclosure data and modeling without building custom sustainability-data workflows.
- [Clientary](https://composio.dev/toolkits/clientary) - Clientary is a platform for managing clients, invoices, projects, proposals, and more. It streamlines client work and saves you serious admin time.
- [Coinbase](https://composio.dev/toolkits/coinbase) - Coinbase is a platform for buying, selling, and storing cryptocurrency. It makes exchanging and managing crypto simple and secure for everyone.
- [Coinranking](https://composio.dev/toolkits/coinranking) - Coinranking is a comprehensive cryptocurrency market data platform offering access to real-time coin prices, market caps, and historical data. Get accurate, up-to-date stats for thousands of digital assets in one place.
- [Coupa](https://composio.dev/toolkits/coupa) - Coupa is a business spend management platform for procurement, invoicing, and expenses. It helps organizations streamline purchasing, control costs, and gain complete visibility over financial operations.
- [CurrencyScoop](https://composio.dev/toolkits/currencyscoop) - CurrencyScoop is a developer-friendly API for real-time and historical currency exchange rates. Easily access fiat and crypto data for smart, up-to-date financial applications.
- [Daffy](https://composio.dev/toolkits/daffy) - Daffy is a modern charitable giving platform with a donor-advised fund. Easily set aside funds, grow them tax-free, and donate to over 1.7 million U.S. charities.
- [Didit](https://composio.dev/toolkits/didit) - Didit is an identity verification and compliance API platform for KYC, KYB, AML, and fraud prevention. It helps teams onboard users faster while reducing risk and meeting compliance needs.
- [Donately](https://composio.dev/toolkits/donately) - Donately is a fundraising platform for campaigns, donations, recurring giving, donors, forms, fundraisers, and webhooks. It helps nonprofits and fundraising teams manage online giving workflows in one place.
- [Eagle doc](https://composio.dev/toolkits/eagle_doc) - Eagle doc is an AI-powered OCR API for invoices and receipts. It delivers fast, reliable, and accurate document data extraction for seamless automation.

## Frequently Asked Questions

### Do I need my own developer credentials to use PocketSmith with Composio?

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

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

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

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
