Gatherings MCP Server

Gatherings MCP Server

By abutbul GitHub

The Gatherings MCP Server provides an API that allows AI assistants to interact with the Gatherings application through the Machine Conversation Protocol. This enables AI systems to help users manage shared expenses for social events, outings, or any gathering where costs are split among participants.

gatherings mcp
Overview

What is Gatherings MCP Server?

The Gatherings MCP Server is an API that allows AI assistants to interact with the Gatherings application through the Machine Conversation Protocol, enabling users to manage shared expenses for social events and gatherings.

How to use Gatherings MCP Server?

To use the Gatherings MCP Server, clone the repository, install the required dependencies, set up environment variables if needed, and start the server using Python. The server will then be ready to handle requests from MCP protocol clients.

Key features of Gatherings MCP Server?

  • Create and manage gatherings with multiple members
  • Add expenses for specific members
  • Calculate fair reimbursements
  • Record payments and reimbursements
  • Generate detailed payment summaries
  • Add/remove members from gatherings
  • Rename members as needed

Use cases of Gatherings MCP Server?

  1. Managing expenses for group dinners or outings.
  2. Facilitating cost-sharing for events like parties or trips.
  3. Keeping track of payments and reimbursements among friends or family.

FAQ from Gatherings MCP Server?

  • Can I use this server for any type of gathering?

Yes! It is designed for any social event where costs need to be split among participants.

  • What programming language is used?

The server is built using Python.

  • Is there a limit to the number of members in a gathering?

No, you can create gatherings with as many members as needed.

Content

Gatherings MCP Server

A Machine Conversation Protocol (MCP) server interface for the Gatherings expense-sharing application.

Overview

The Gatherings MCP Server provides an API that allows AI assistants to interact with the Gatherings application through the Machine Conversation Protocol. This enables AI systems to help users manage shared expenses for social events, outings, or any gathering where costs are split among participants.

Features

  • Create and manage gatherings with multiple members
  • Add expenses for specific members
  • Calculate fair reimbursements
  • Record payments and reimbursements
  • Generate detailed payment summaries
  • Add/remove members from gatherings
  • Rename members as needed

Installation

Prerequisites

  • Python 3.8+
  • SQLAlchemy
  • MCP SDK

Setup

  1. Clone this repository:

    git clone https://your-repository.git
    cd accel
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Set 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

Start the MCP server:

python gatherings_mcp_server.py

The server runs on stdio, which makes it compatible with MCP protocol clients.

API Reference

The MCP server exposes the following tools:

create_gathering(gathering_id: str, members: int)

Create a new gathering with the specified number of members.

add_expense(gathering_id: str, member_name: str, amount: float)

Add an expense for a member in a gathering.

calculate_reimbursements(gathering_id: str)

Calculate who owes what to whom for a gathering.

record_payment(gathering_id: str, member_name: str, amount: float)

Record a payment made by a member (positive value) or a reimbursement to a member (negative value).

rename_member(gathering_id: str, old_name: str, new_name: str)

Rename a member in a gathering.

show_gathering(gathering_id: str)

Show details of a gathering including expenses and payment status.

list_gatherings()

List all gatherings in the database.

close_gathering(gathering_id: str)

Mark a gathering as closed.

delete_gathering(gathering_id: str, force: bool = False)

Delete a gathering and all associated data. Set force=True to delete closed gatherings.

add_member(gathering_id: str, member_name: str)

Add a new member to an existing gathering.

remove_member(gathering_id: str, member_name: str)

Remove a member from a gathering (only if they have no expenses).

Example Flow

  1. Create a gathering for a dinner with 5 friends:

    create_gathering("2023-10-15-dinner", 5)
    
  2. Add expenses as people pay for things:

    add_expense("2023-10-15-dinner", "Alice", 120.50)
    add_expense("2023-10-15-dinner", "Bob", 35.00)
    
  3. Calculate reimbursements:

    calculate_reimbursements("2023-10-15-dinner")
    
  4. Record payments as people settle up:

    record_payment("2023-10-15-dinner", "Charlie", 31.10)
    
  5. Close the gathering when all payments are settled:

    close_gathering("2023-10-15-dinner")
    

Architecture

The Gatherings MCP server consists of three main components:

  1. MCP Server Interface (gatherings_mcp_server.py): Provides the MCP protocol interface that AI tools can interact with.

  2. Service Layer (services.py): Contains business logic for managing gatherings, expenses, and payments.

  3. Data Layer (models.py): Defines the database schema using SQLAlchemy ORM and handles data persistence.

Data Model

  • Gathering: Represents a social event with expenses to split
  • Member: A participant in a gathering
  • Expense: Money spent by a member for the gathering
  • Payment: Money paid by a member to settle balances

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details