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.
What is abutbul gatherings mcp python
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:
pip install uv
To install project dependencies:
uv pip install -r requirements.txt
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:
git clone https://your-repository.git cd accel
-
Install the required dependencies:
pip install -r requirements.txt
-
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
-
Create a gathering for a dinner with 5 friends:
create_gathering("2023-10-15-dinner", 5)
-
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)
-
Calculate reimbursements:
calculate_reimbursements("2023-10-15-dinner")
-
Record payments as people settle up:
record_payment("2023-10-15-dinner", "Charlie", 31.10)
-
Close the gathering when all payments are settled:
close_gathering("2023-10-15-dinner")
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.
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
Brave Search MCP
Integrate Brave Search capabilities into Claude through MCP. Enables real-time web searches with privacy-focused results and comprehensive web coverage.
chrisdoc hevy mcp
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP 服务器,用于管理桌面图片、查看详情、压缩、移动等(完全让Trae实现)
Submit Your MCP Server
Share your MCP server with the community
Submit Now