Integrations
Serves as the runtime environment for the MCP server, enabling the creation and management of shared expenses for social events through Python-based implementations.
Provides an ORM interface for storing gathering data, expenses, and payment records in a SQL database, allowing for persistence of user expense-sharing information.
Gatherings MCP Server
A Model Context Protocol server for managing gatherings and expense sharing.
Dependency Management
This project uses uv
for Python dependency management instead of pip
. This change is necessary due to dependency requirements from the Model Context Protocol Python SDK.
Ensure you have uv
installed or install it via pip:
To install project dependencies:
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
- Clone this repository:Copy
- Install the required dependencies:Copy
- Set environment variables (optional):Copy
Usage
Start the MCP server:
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
- Create a gathering for a dinner with 5 friends:Copy
- Add expenses as people pay for things:Copy
- Calculate reimbursements:Copy
- Record payments as people settle up:Copy
- Close the gathering when all payments are settled:Copy
Architecture
The Gatherings MCP server consists of three main components:
- MCP Server Interface (
gatherings_mcp_server.py
): Provides the MCP protocol interface that AI tools can interact with. - Service Layer (
services.py
): Contains business logic for managing gatherings, expenses, and payments. - 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.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
An MCP server that helps AI assistants manage expense-sharing for social events, enabling the creation of gatherings, tracking of expenses, and calculation of fair reimbursements among participants.
- Dependency Management
- Overview
- Features
- Installation
- Usage
- API Reference
- create_gathering(gathering_id: str, members: int)
- add_expense(gathering_id: str, member_name: str, amount: float)
- calculate_reimbursements(gathering_id: str)
- record_payment(gathering_id: str, member_name: str, amount: float)
- rename_member(gathering_id: str, old_name: str, new_name: str)
- show_gathering(gathering_id: str)
- list_gatherings()
- close_gathering(gathering_id: str)
- delete_gathering(gathering_id: str, force: bool = False)
- add_member(gathering_id: str, member_name: str)
- remove_member(gathering_id: str, member_name: str)
- Example Flow
- Architecture
- Data Model
- Contributing
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that lets AI assistants interact with your Lunchmoney data, enabling natural language queries about transactions, budgets, and spending patterns.Last updated -438TypeScriptMIT License
Fewsats MCP Serverofficial
AsecurityFlicenseAqualityAn MCP server that integrates with Fewsats allowing AI agents to securely purchase anything by retrieving balances, accessing payment methods, and processing payments.Last updated -411Python- -security-license-qualityA specialized MCP server that enables AI agents to interact with Reddit, including reading posts, creating content, and managing subreddit configurations.Last updated -311TypeScript
- -security-license-qualityA simple MCP server that enables meeting room booking through an AI assistant, supporting room availability checks and booking operations with React Agent pattern for tool calling.Last updated -Python