Gatherings (Expense Sharing) MCP server

Provides a robust expense-sharing solution for social gatherings, enabling creation of events, member management, expense tracking, and automated reimbursement calculations.
Back to servers
Setup instructions
Provider
Abutbul
Release date
Mar 05, 2025
Language
Python

The Gatherings MCP Server allows AI assistants to help users manage shared expenses for events through the Model Context Protocol. It tracks expenses, calculates fair splits, and manages reimbursements between participants.

Installation

Prerequisites

  • Python 3.8+
  • uv package manager

Step-by-Step Setup

  1. Install the uv package manager if you don't have it:

    pip install uv
    
  2. Clone the repository:

    git clone https://your-repository.git
    cd accel
    
  3. Install dependencies using uv:

    uv pip install -r requirements.txt
    
  4. Configure environment variables (optional):

    # Custom database location
    export GATHERINGS_DB_PATH=path/to/database.db
    
    # Custom script location
    export GATHERINGS_SCRIPT=path/to/gatherings.py
    

Usage

Starting the Server

Run the MCP server with:

python gatherings_mcp_server.py

The server operates via stdio, making it compatible with MCP protocol clients.

Available Commands

Managing Gatherings

  • Create a new gathering:

    create_gathering("dinner-party", 5)
    
  • List all gatherings:

    list_gatherings()
    
  • Show gathering details:

    show_gathering("dinner-party")
    
  • Close a gathering (when all expenses are settled):

    close_gathering("dinner-party")
    
  • Delete a gathering:

    delete_gathering("dinner-party")
    

    Use force=True to delete closed gatherings.

Managing Members

  • Add a new member:

    add_member("dinner-party", "David")
    
  • Rename a member:

    rename_member("dinner-party", "Dave", "David")
    
  • Remove a member (only if they have no expenses):

    remove_member("dinner-party", "David")
    

Managing Expenses and Payments

  • Add an expense:

    add_expense("dinner-party", "Alice", 120.50)
    
  • Calculate reimbursements:

    calculate_reimbursements("dinner-party")
    
  • Record a payment:

    record_payment("dinner-party", "Charlie", 31.10)
    

    Use positive values for payments made, negative for reimbursements received.

Example Workflow

Here's a typical sequence for managing a dinner gathering:

  1. Create the gathering:

    create_gathering("friday-dinner", 4)
    
  2. Record expenses as they occur:

    add_expense("friday-dinner", "Alice", 120.50)  # Alice paid for dinner
    add_expense("friday-dinner", "Bob", 35.00)     # Bob paid for drinks
    
  3. Calculate who owes what:

    calculate_reimbursements("friday-dinner")
    
  4. Record payments as people settle up:

    record_payment("friday-dinner", "Charlie", 38.88)  # Charlie paid Alice
    record_payment("friday-dinner", "David", 38.87)    # David paid Alice
    
  5. When all debts are settled, close the gathering:

    close_gathering("friday-dinner")
    

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "gatherings" '{"command":"python","args":["gatherings_mcp_server.py"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "gatherings": {
            "command": "python",
            "args": [
                "gatherings_mcp_server.py"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "gatherings": {
            "command": "python",
            "args": [
                "gatherings_mcp_server.py"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later