Skip to main content
Glama
Capital One MCP Server

Capital One MCP Server

by hashwnath
README.md
# Capital One MCP Server

> Capital One serves 100M+ customers and manages hundreds of petabytes of data approaching exabyte scale. Their Chief Scientist Prem Natarajan says: "AI is at its best when it transfers cognitive burden from the human to the system." This MCP server is that transfer layer — making Capital One's banking services accessible to any AI assistant through the Model Context Protocol.

## Architecture

```mermaid
graph TD
    A["🤖 AI Assistant<br/>(Claude / GPT / Copilot)"] -->|MCP Protocol| B["⚡ MCP Server<br/>capitalone-mcp-server"]
    B -->|tool call| C["💳 Credit Offers<br/>Search & Compare"]
    B -->|tool call| D["🏧 ATM Locator<br/>Find Nearby ATMs"]
    B -->|tool call| E["🏦 Branch Locator<br/>Find Branches & Cafes"]
    B -->|tool call| F["📊 Account Lookup<br/>Balances & Details"]
    B -->|tool call| G["🏪 Merchant Search<br/>By Name or Category"]
    B -->|tool call| H["⭐ Rewards Check<br/>Points & Redemption"]
    C -->|HTTPS| J["Capital One<br/>DevExchange API"]
    D -->|HTTPS| I["Capital One<br/>Nessie Sandbox API"]
    E -->|HTTPS| I
    F -->|HTTPS| I
    G -->|HTTPS| I

    style A fill:#E0E0E0,stroke:#333
    style B fill:#90EE90,stroke:#333
    style C fill:#90EE90,stroke:#333
    style D fill:#90EE90,stroke:#333
    style E fill:#90EE90,stroke:#333
    style F fill:#90EE90,stroke:#333
    style G fill:#90EE90,stroke:#333
    style H fill:#FFD700,stroke:#333
    style I fill:#E0E0E0,stroke:#333
    style J fill:#E0E0E0,stroke:#333
```

[Full interactive diagram](docs/architecture.excalidraw)

## Demo

![Demo](docs/demo.gif)

[Watch full quality video](https://github.com/hashwnath/capitalone-mcp-server/releases/download/v1.0/demo.mp4)

## What's Live vs Blueprint

| Component | Status | Notes |
|-----------|--------|-------|
| MCP Server Core | ✅ Live | stdio transport, full MCP protocol support |
| Credit Offers Tool | ✅ Live | Queries DevExchange Credit Offers API with sample data fallback |
| ATM Locator Tool | ✅ Live | Queries Nessie sandbox, sorts by proximity |
| Branch Locator Tool | ✅ Live | Queries Nessie sandbox, distinguishes branches vs cafes |
| Account Lookup Tool | ✅ Live | Queries Nessie sandbox with test customer data |
| Merchant Search Tool | ✅ Live | Name/category/location search against Nessie |
| Rewards Check Tool | 🔶 Blueprint | Mock data with typed interface — wire to authenticated Rewards API |
| Nessie API Client | ✅ Live | Full async HTTP client with error handling |
| DevExchange Client | ✅ Live | OAuth2 flow + sample data fallback |

**5 of 6 tools run live** against Capital One's public APIs. The Rewards tool is scaffolded with a clean integration point your team wires in a day.

## Why This Matters

The pattern is clear across financial services:
- **Morgan Stanley** shipped an AI assistant hitting 98% advisor adoption, saving 30 min per client meeting
- **JPMorgan Chase** rolled out LLM Suite to 200K+ employees with 450+ AI use cases
- **Mastercard** launched Agent Pay for AI agents to execute tokenized payments

Capital One's Chat Concierge proved agentic AI works for auto sales (55% conversion lift). This MCP server extends that pattern to the API layer, making every Capital One service agent-accessible.

## Quick Start

```bash
# Clone and install
git clone https://github.com/hashwnath/capitalone-mcp-server.git
cd capitalone-mcp-server
pip install -r requirements.txt

# Get a free Nessie API key at http://api.nessieisreal.com
export NESSIE_API_KEY="your_key_here"

# Run the MCP server
python -m src.server

# Or configure in Claude Desktop / your MCP client:
# {
#   "mcpServers": {
#     "capitalone": {
#       "command": "python",
#       "args": ["-m", "src.server"],
#       "env": { "NESSIE_API_KEY": "your_key" }
#     }
#   }
# }
```

### Run Tests

```bash
pip install -r requirements.txt
pytest tests/ -v
```

## Tools

| Tool | Description | Example |
|------|-------------|---------|
| `search_credit_offers` | Find credit cards by type and fee | "travel cards with no annual fee" |
| `find_atms` | Locate nearby ATMs | "ATMs near 10001" |
| `find_branches` | Find branches and cafes | "branches near McLean, VA" |
| `lookup_accounts` | View account details | "show my checking accounts" |
| `search_merchants` | Search merchants | "coffee shops near DC" |
| `check_rewards` | Check points balance | "how many rewards points do I have?" |

## About

Built by [Hashwanth Sutharapu](https://github.com/hashwnath) — contributor to
[Microsoft Agent Framework](https://github.com/microsoft/agent-framework) (8K+ stars) and
[awesome-copilot](https://github.com/pnp/awesome-copilot) (29K+ stars).
Production MCP server experience: 1K+ req/min, 99.9% uptime.
SDE at MAQ Software (Microsoft Partner), Bellevue WA.