Skip to main content
Glama
Splitwise MCP Server

Splitwise MCP Server

by hubshashwat

Splitwise MCP Server

MCP PyPI

A Model Context Protocol (MCP) server that integrates with Splitwise. Connect your AI assistant (Claude, Cursor, etc.) to manage Splitwise expenses using natural language — with voice support!

How It Works

flowchart LR
    Client[Claude / Cursor] -->|MCP| Server[splitwise-mcp]
    Server -->|audio| Deepgram[Deepgram STT]
    Deepgram -->|text| Gemini[Gemini 3 Flash]
    Gemini -->|action| Splitwise[Splitwise API]

Related MCP server: Splitwise MCP Server

Features

Tool

Description

voice_command

Send audio → Deepgram transcribes → Gemini processes → Splitwise executes

text_command

Send text → Gemini processes → Splitwise executes

add_expense

Add expenses with support for groups, percentages, exclusions, and specific payers

delete_expense

Delete an expense by ID

list_friends

List your Splitwise friends

configure_splitwise

Configure API credentials

login_with_token

Login with OAuth2 token

Smart Name Matching: If Deepgram transcribes "Humeet" but your friend is "Sumeet", Gemini will ask for clarification instead of guessing.

Advanced Splits

  • Percentages: "Split 40% for me and 60% for Alice"

  • Groups: "Add to Apartment group" (Auto-fetches members)

  • Exclusions: "Add to Apartment but exclude Bob"

  • Payer: "Alice paid $50"

  • Deletion: "Delete expense 12345"

Installation

pip install splitwise-mcp

Option 2: Install from Source

  1. Clone the repository:

    git clone https://github.com/hubshashwat/the-splitwise-mcp.git
    cd the-splitwise-mcp
  2. Create and activate a virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install the package:

    pip install -e .

Configuration

You'll need API keys depending on which features you want:

Required (Core Splitwise Features)

  1. Splitwise API Keys (https://secure.splitwise.com/apps/new)

    • Register a new application

    • Get: Consumer Key, Consumer Secret, and API Key

    • Required for: add_expense, list_friends, delete_expense

Optional (AI Features)

  1. Gemini API Key (https://aistudio.google.com/) - Optional

    • Create API key (free tier available)

    • Model: Uses Gemini 3.0 Flash - ensure your API key has access to this model

    • Required for: text_command (natural language processing)

  2. Deepgram API Key (https://console.deepgram.com/) - Optional

    • Sign up and get API key (free tier available)

    • Required for: voice_command (audio transcription)

Summary:

  • Text-only users: Need Splitwise + Gemini keys (skip Deepgram)

  • Voice users: Need all 5 keys

  • Basic API users: Only need 3 Splitwise keys

Set environment variables in your shell or add to your Claude Desktop config (see below).

Usage

You can use this server in two ways:

Option A: Standalone Terminal Agent (No Claude Required!) 🖥️

Run the voice/text agent directly in your terminal:

# Install the package
pip install splitwise-mcp

# Download the agent script
curl -O https://raw.githubusercontent.com/hubshashwat/the-splitwise-mcp/main/run_agent.py

# Set environment variables
export SPLITWISE_CONSUMER_KEY="your_key"
export SPLITWISE_CONSUMER_SECRET="your_secret"  
export SPLITWISE_API_KEY="your_api_key"
export GEMINI_API_KEY="your_gemini_key"
export DEEPGRAM_API_KEY="your_deepgram_key"

# Run the agent
python run_agent.py

Commands:

  • v or voice - Record 10 seconds of audio and process it

  • t or text - Type your command

  • q or quit - Exit

Example session:

🤖 Splitwise Voice Agent
Enter command (voice/text/quit): t
Enter request: Add expense of $50 with John for dinner

⚠️  Proposed Action:
   Function: add_expense
   Args: {
     "description": "dinner",
     "cost": 50.0,
     "split_with": ["John"]
   }

Proceed? (yes/edit/cancel): yes
✅ Expense added!

Option B: With MCP Clients 💬

This server uses stdio transport and works with all MCP-compatible clients:

Claude Desktop

Add to your config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "splitwise": {
      "command": "full path of python",
      "args": ["-m", "splitwise_mcp.server"],
      "env": {
        "SPLITWISE_CONSUMER_KEY": "your_consumer_key",
        "SPLITWISE_CONSUMER_SECRET": "your_consumer_secret",
        "SPLITWISE_API_KEY": "your_api_key",
        "GEMINI_API_KEY": "your_gemini_key",
        "DEEPGRAM_API_KEY": "your_deepgram_key"
      }
    }
  }
}

Note: If splitwise-mcp console command is available, you can use "command": "splitwise-mcp" without args instead.

Then in Claude: "Add an expense of $50 with John for dinner"

Claude CLI

Use the same config format with claude-cli --mcp-config.

Cursor / VS Code (Antigravity, Cline, Continue.dev)

Add to your MCP settings (.vscode/settings.json or Cursor settings):

{
  "mcp.servers": {
    "splitwise": {
      "command": "full path of python",
      "args": ["-m", "splitwise_mcp.server"],
      "env": {
        "SPLITWISE_CONSUMER_KEY": "your_consumer_key",
        "SPLITWISE_CONSUMER_SECRET": "your_consumer_secret",
        "SPLITWISE_API_KEY": "your_api_key",
        "GEMINI_API_KEY": "your_gemini_key",
        "DEEPGRAM_API_KEY": "your_deepgram_key"
      }
    }
  }
}

Then you can ask your AI assistant: "Use Splitwise to add an expense..."

Other MCP Clients

This server is compatible with any MCP client supporting stdio transport. Use the same configuration pattern.


Note: If you installed from source instead of pip, use the full path to the executable:

  • macOS/Linux: "/path/to/the-splitwise-mcp/.venv/bin/splitwise-mcp"

  • Windows: "C:\\path\\to\\the-splitwise-mcp\\.venv\\Scripts\\splitwise-mcp.exe"

Remote Access (SSE)

To run the MCP server over HTTP for remote clients:

.venv/bin/uvicorn splitwise_mcp.sse:app --host 0.0.0.0 --port 8000

Connect via: http://YOUR_IP:8000/sse

Development

Run tests:

.venv/bin/python tests/test_logic.py

Troubleshooting

Microphone Issues (macOS)

If the agent says "Recording finished" immediately but captures no audio (Volume: 0.0), your terminal likely lacks microphone permission.

  1. Go to System Settings > Privacy & Security > Microphone.

  2. Enable access for your terminal app (Terminal, iTerm, VS Code, etc.).

  3. Restart your terminal for changes to take effect.

License

MIT

Available Tools

7 tools
add_expenseA

Add an expense to Splitwise, supporting unequal splits, groups, and precise control.

Args: amount: The total cost (e.g., "70", "10.50"). description: A brief description. friend_names: Friends to split with. Can be empty if using group_name. split_map: Optional dict for unequal splits. Keys=Names (or 'me'), Values=Amount/Percentage. Example: {'me': '40%', 'Alice': '60%'} or {'me': '10', 'Bob': '20'} group_name: Optional group to add expense to. payer_name: Optional name of who paid. Defaults to 'me'. exclude_names: Optional list of names to exclude from a group split.

Inputs: amount (required), description (required), friend_names (required), split_map, +3 more. Returns: result

configure_splitwiseA

Configure the Splitwise client with API credentials. You must provide either (consumer_key AND consumer_secret) OR api_key.

Inputs: consumer_key, consumer_secret, api_key. Returns: result

delete_expenseB

Delete an expense by its ID.

Inputs: expense_id (required). Returns: result

list_friendsA

List all friends of the current user on Splitwise. Returns a formatted string list of friends.

Inputs: no named parameters. Returns: result

login_with_tokenA

Log in using an existing OAuth2 Access Token. Useful for integrations where authentication is handled externally (e.g. ChatGPT).

Inputs: access_token (required). Returns: result

text_commandA

Process a text command for Splitwise.

Interprets natural language text using Gemini and executes Splitwise actions. Use this when you already have text (e.g., from a chat message) instead of audio.

Args: text: Natural language command (e.g., "Split 50 with Sumeet for dinner").

Returns: The result of the command (e.g., confirmation, clarification request, or error).

Inputs: text (required). Returns: result

voice_commandA

Process a voice command for Splitwise.

Accepts base64-encoded audio (WAV or MP3 format), transcribes it using Deepgram, processes the intent using Gemini, and executes Splitwise actions.

Args: audio_base64: Base64-encoded audio data (WAV or MP3).

Returns: The result of the voice command (e.g., confirmation, clarification request, or error).

Inputs: audio_base64 (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: authentication setup, login, adding/deleting expenses, listing friends, and text/voice command processing. No overlapping functionality.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern (add_expense, delete_expense, list_friends), but login_with_token and configure_splitwise are slightly different, and text_command/voice_command are adjective_noun. Minor inconsistency but still readable.

    Tool Count5/5

    Seven tools cover essential Splitwise actions like authentication (configure, login), expense management (add, delete), friend listing, and natural language interfaces, which is well-scoped for the server's purpose.

    Completeness2/5

    Notable missing operations: no update or get/list expenses (only add/delete), no group management beyond expense addition, and no tool to retrieve expense details. The command tools may partially compensate but lack explicit coverage.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for Splitwise that enables users to manage shared expenses, friends, and groups directly through AI assistants. It allows for creating, deleting, and listing expenses while providing tools to track net balances and group debts.
      8
      721 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      A standalone MCP server that provides complete access to the Splitwise API, enabling natural language management of expenses, groups, friends, and notifications in MCP-compatible clients like Claude Desktop and VS Code Copilot.
      9
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A local MCP server that enables AI clients like Codex, Claude Code, and Claude Desktop to manage Splitwise expenses, friends, groups, and more through natural language.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language management of Splitwise expenses, groups, and friends via the Model Context Protocol, with dual authentication and fuzzy name resolution.
      19
      MIT