TS

tarunn2799/splitwise-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

19 stars 14 forks 质量 68 趋势 22MIT

用于所有事物的 MCP 服务器 Splitwise. 消除了手动操作的痛苦.

概览

一个用于 Splitwise (Splitwise) (MCP) 的模型背景协议(MCP)服务器,使AI代理能够管理费用,团体,以及使用自然语言的朋友. - 管理费用、团体、朋友和评论。 -:模糊匹配名称("约翰"-"约翰·史密斯")和组. -:支持OAuth 2.0(推荐)和API键. -:优化类和货币等静态数据的性能. 详细认证和配置指令见SETUP.md. 使用那里提供的密钥,并在您的 mcp.json 中添加全部三: 您可以在 [[T0] 注册一个应用程序, 获取您的消费密钥和秘密 。 使用虚拟环境? 如果您在 venv 或 Conda 环境中安装了软件包, 您必须在配置中使用到 python 可执行文件 。 详情见SETUP.md. 服务器允许与您的 Splitwise 数据进行自然语言交互 。 - "我的平衡是多少?" - "和莎拉一起吃个50美元的晚餐".

概述(AI 翻译)

一个用于 Splitwise (Splitwise) (MCP) 的模型背景协议(MCP)服务器,使AI代理能够管理费用,团体,以及使用自然语言的朋友.

□ 特性

  • ** API Access**:管理费用、团体、朋友和评论。
  • 自然语言分辨率:模糊相匹配名称(“约翰”-“约翰·史密斯”)和组.
  • ** Dual Auth**:同时支持OAuth 2.0(推荐)和API密钥.
  • ** Smart Caching**:优化诸如类别和货币等静态数据的性能。

□ 安装

□ 配置

详细认证和配置指令见SETUP.md.

QQ 快速配置 运行包含的设置脚本 :

使用那里提供的密钥,并在您的 [[T0] 中添加全部三:

** 获取您的 Auth 密钥** 您可以通过在 [[T1] 注册一个应用程序来获取您的消费密钥和秘密 。

** 重要:** 利用虚拟环境? 如果您在 [[T2] 或 Conda 环境中安装了软件包, 您必须在配置中使用 ** 绝对路径** 到 python 可执行的 python 。 翻译: 翻译:

详情见SETUP.md。

□ 使用量

服务器允许与您的 Splitwise 数据进行自然语言交互 。

** 实例:**

  • “我的当前平衡是什么?”

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Splitwise MCP Server

A Model Context Protocol (MCP) server for Splitwise, enabling AI agents to manage expenses, groups, and friends with natural language.

Features

  • Full API Access: Manage expenses, groups, friends, and comments.
  • Natural Language Resolution: Fuzzy matching for names (“John” -> “John Smith”) and groups.
  • Dual Auth: Supports both OAuth 2.0 (recommended) and API Keys.
  • Smart Caching: Optimizes performance for static data like categories and currencies.

Installation

# From PyPI (when published)
pip install splitwise-mcp-server

# From Source
git clone https://github.com/tarunn2799/splitwise-mcp-server
cd splitwise-mcp-server
pip install -e .

Configuration

See SETUP.md for detailed authentication and configuration instructions.

Quick Config

Run the included setup script:

python -m splitwise_mcp_server.oauth_setup

Use the keys provided there, and add all three to your mcp.json:

{
  "mcpServers": {
    "splitwise": {
      "command": "python",
      "args": ["-m", "splitwise_mcp_server"],
      "env": {
        "SPLITWISE_OAUTH_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}

Get your Auth Keys You can get your Consumer Key and Secret by registering an app at https://secure.splitwise.com/apps.

IMPORTANT: Using a Virtual Environment? If you installed the package in a venv or Conda environment, you must use the absolute path to the python executable in your config.

"command": "/absolute/path/to/venv/bin/python"

See SETUP.md for details.

Usage

The server enables natural language interactions with your Splitwise data.

Examples:

  • “What’s my current balance?”
  • “Split a $50 dinner with Sarah.”
  • “Use the receipt I uploaded to split the dinner between Manav and me.”
  • “Show me expenses from last month.”
  • “Create a group called ‘Ski Trip’ with Mike.”

Tools

See TOOLS.md for detailed documentation.

User Tools

  • get-current-user: Get authenticated user information
  • get-user: Get information about a specific user

Expense Tools

  • create-expense: Create a new expense with splits
  • get-expenses: List expenses with optional filters
  • get-expense: Get detailed expense information
  • update-expense: Update an existing expense
  • delete-expense: Delete an expense

Group Tools

  • get-groups: List all groups
  • get-group: Get detailed group information
  • create-group: Create a new group
  • delete-group: Delete a group
  • add-user-to-group: Add a user to a group
  • remove-user-from-group: Remove a user from a group

Friend Tools

  • get-friends: List all friends
  • get-friend: Get detailed friend information

Resolution Tools

  • resolve-friend: Fuzzy match friend names to user IDs
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "splitwise": { "command": "python", "args": ["-m", "splitwise_mcp_server"], "env": { "SPLITWISE_OAUTH_ACCESS_TOKEN": "your_token_here" } } } }