Ramp MCP Server: LLM-Powered Spend Analysis
Analyze spend with Ramp's MCP server via the Developer API to get LLM-powered insights, uncover savings, and optimize costs.
npx -y @ramp-public/ramp-mcpOverview
Ramp MCP Server is an implementation of a Model Context Protocol (MCP) server designed to bring LLM-powered spend analysis to developer workflows. It accepts structured spend data (transactions, accounts, vendors) and exposes an API that uses language models and a set of programmatic tools to produce both human-readable insights and machine-actionable recommendations for cost optimization.
For engineering teams and finance platforms, Ramp MCP Server provides a simple integration point to get automated expense summaries, uncover savings opportunities, and generate prioritized recommendations. It’s useful when you want LLM reasoning over financial data while keeping tools and data access explicit and auditable through the MCP toolset.
Features
- LLM-powered natural-language analysis of spend data
- Structured, actionable recommendations (savings estimates, vendor consolidation, policy gaps)
- MCP tool integration: charting, time-series aggregation, vendor grouping, anomaly detection
- Extensible toolset so teams can add custom connectors or heuristics
- Support for batched transaction ingestion and incremental analyses
- Developer-friendly API and configuration (local or containerized deployment)
- Human-readable explanations and references to the underlying data that led to suggestions
Installation / Configuration
Prerequisites: Node.js (16+), Docker (optional), API key(s) for your LLM provider if using hosted models.
- Clone the repository:
- Install dependencies:
# or
- Create a .env file (example):
PORT=8080
RAMP_API_KEY=replace_with_your_ramp_api_key
LLM_API_KEY=replace_with_your_llm_provider_key
LLM_PROVIDER=openaiLOG_LEVEL=info
- Start the server locally:
# or for production
- Run with Docker:
Modify environment variables to match your deployment and secret management practices.
Available Resources
- Repository: https://github.com/ramp-public/ramp-mcp — source, examples, and tests
- Configuration: .env-driven configuration for local, CI, and containerized deployments
- Extensibility: add or replace MCP tools by implementing the tool interface in the tools/ directory (see repo docs)
- API docs: example OpenAPI or API specification lives in the repo (look for api/ or docs/ folders)
- Example datasets: sample transaction CSV/JSON under examples/ for local testing
Typical API Usage (example)
Below is a generic example of how to call the Developer API exposed by the server to request a spend analysis. Replace {MCP_BASE_URL} and keys with your values.
Request:
Example response (abridged):
Use Cases
- Monthly CFO summary: ingest last month’s transactions and generate an executive summary with bulletized savings and outliers.
- Vendor consolidation: identify multiple subscriptions to the same vendor across teams and recommend consolidation or enterprise licensing.
- Anomaly detection and alerting: detect sudden spikes in category spend and automatically create an incident with contextual reasoning.
- Policy enforcement: flag transactions that violate internal policies (e.g., high software spend without procurement approval) and suggest remediation steps.
- Forecasting and scenario modeling: use historical data to estimate the impact of proposed cost reductions (e.g., switching to reserved instances).
Developer Tips
- Keep input transactions normalized (ISO dates, consistent vendor naming) to improve LLM reasoning and grouping accuracy.
- Use the tool extension points to add deterministic checks (e.g., contract lookup) so the LLM can call them instead of guessing.
- Log requests and LLM decisions for auditability—responses often include recommended