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.
uv
package managerInstall the uv
package manager if you don't have it:
pip install uv
Clone the repository:
git clone https://your-repository.git
cd accel
Install dependencies using uv
:
uv pip install -r requirements.txt
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
Run the MCP server with:
python gatherings_mcp_server.py
The server operates via stdio, making it compatible with MCP protocol clients.
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.
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")
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.
Here's a typical sequence for managing a dinner gathering:
Create the gathering:
create_gathering("friday-dinner", 4)
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
Calculate who owes what:
calculate_reimbursements("friday-dinner")
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
When all debts are settled, close the gathering:
close_gathering("friday-dinner")
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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