StarModel invitation
← Back to MCP directory
publicPublicdnsLocal runtime

ramp-mcp

Ramp MCP服务器是一个用于通过开发者API获取和分析Ramp数据或执行任务的模型上下文协议服务,提供ETL管道和内存SQLite数据库支持。

article

README

🚀 Ramp-MCP:一个Ramp MCP服务器

Ramp-MCP是一个模型上下文协议(Model Context Protocol)服务器,可通过Ramp的开发者API检索和分析数据或运行任务。该服务器实现了简单的ETL管道,利用内存中的临时sqlite数据库进行分析,以绕过令牌和输入大小限制,供大语言模型(LLM)使用。默认请求发往演示环境,可通过设置RAMP_ENV=prd更改目标环境。不过,受API和/或MCP客户端限制,大型数据集可能无法处理。

🚀 快速开始

工具

数据库工具

用于设置、处理、查询和删除内存中临时数据库的工具:

  1. process_data
  2. execute_query
  3. clear_table

获取工具

用于直接获取数据的工具:

  1. get_ramp_categories
  2. get_currencies

加载工具

将数据加载到服务器,供客户端获取。根据您希望使用的工具,确保在服务器启动时启用所需的范围,并将其包含在CLI参数中。

| 工具 | 范围 | | ------------------------- | ------------------- | | load_transactions | transactions:read | | load_reimbursements | reimbursements:read | | load_bills | bills:read | | load_locations | locations:read | | load_departments | departments:read | | load_bank_accounts | bank_accounts:read | | load_vendors | vendors:read | | load_vendor_bank Accounts | vendors:read | | load_entities | entities:read | | load_spend_limits | limits:read | | load_spend_programs | spend_programs:read | | load_users | users:read |

⚠️ 重要提示

对于大型数据集,建议明确提示Claude不要使用REPL,并保持响应简洁以避免超时或过度的令牌使用。

📦 安装指南

Ramp设置

  1. 从Ramp开发者页面创建一个新的客户端(顶部右侧个人资料 > 开发者 > 创建应用)
  2. 根据您使用的工具授予所需的范围给客户端,并启用客户端凭据(点击应用程序 > 授予类型/范围)
  3. 将客户端ID和秘密包含在配置文件中,以及您要使用的范围

本地设置

  1. 使用git clone git@github.com:ramp/ramp-mcp.git或其他方式克隆此Github仓库
  2. 安装uv

💻 使用示例

从您的CLI运行MCP服务器:

RAMP_CLIENT_ID=... RAMP_CLIENT_SECRET=... RAMP_ENV=<demo|prd> uv run ramp-mcp -s <COMMA-SEPARATED-SCOPES>

📚 详细文档

与Claude Desktop一起使用

将以下内容添加到您的claude_desktop_config.json文件中:

{
  "mcpServers": {
    "ramp-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/<ABSOLUTE-PATH-TO>/ramp-mcp", // 确保更新此路径
        "run",
        "ramp-mcp",
        "-s",
        "transactions:read,reimbursements:read"
      ],
      "env": {
        "RAMP_CLIENT_ID": "<CLIENT_ID>",
        "RAMP_CLIENT_SECRET": "<CLIENT_SECRET>",
        "RAMP_ENV": "<demo|qa|prd>"
      }
    }
  }
}

如果文件尚不存在,请在/<ABSOLUTE-PATH-TO>/Library/Application Support/Claude/下创建它。

📄 许可证

版权所有 (c) 2025, Ramp 商业公司 保留所有权利。 本源代码根据LICENSE文件中找到的MIT许可证分发。

READY-TO-PASTE CONFIG

MCP client config generator

Choose your client, fill the required environment variables, then copy a config generated from this server's published metadata

terminal
data_object

This entry does not contain a standard command or remote URL, so a safe client config cannot be generated automatically

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client