# shubham23011/local-mcp-proxy-server architecture

> Architecture diagram of the GitHub repository shubham23011/local-mcp-proxy-server, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shubham23011/local-mcp-proxy-server
- Repository: https://github.com/shubham23011/local-mcp-proxy-server

## Overview

This repository is a local MCP proxy for an expense-tracker client. An MCP client calls registered expense, credit, account-summary, or passthrough tools; each tool prepares arguments and forwards the request over an SSE connection to the remote expense-tracker MCP server. The implementation is concentrated in one source file. The README describes the product at a high level; tool capabilities and forwarding behavior are evidenced by the excerpted implementation.

Main entry points: [`src/proxy_server/main.py`](https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py) (Tool forwarder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_proxy["Local MCP proxy"]
  node_expense_tools["Expense tools<br/>[main.py]"]
  node_credit_tools["Credit tools<br/>[main.py]"]
  node_account_summary["Account summary<br/>[main.py]"]
  node_call_remote["Passthrough tool<br/>[main.py]"]
  node_forwarder["Tool forwarder<br/>[main.py]"]
end

subgraph group_upstream["Remote service"]
  node_remote_server{{"Expense tracker MCP"}}
end

node_client(("MCP client"))

node_client -->|"calls"| node_expense_tools
node_client -->|"calls"| node_credit_tools
node_client -->|"calls"| node_account_summary
node_client -->|"calls"| node_call_remote
node_expense_tools -->|"forwards"| node_forwarder
node_credit_tools -->|"forwards"| node_forwarder
node_account_summary -->|"forwards"| node_forwarder
node_call_remote -->|"forwards"| node_forwarder
node_forwarder -->|"calls tools"| node_remote_server

click node_expense_tools "https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py"
click node_credit_tools "https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py"
click node_account_summary "https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py"
click node_call_remote "https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py"
click node_forwarder "https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_expense_tools,node_credit_tools,node_account_summary,node_call_remote,node_forwarder,node_client toneBlue
class node_remote_server toneAmber
```

## Components

### Local MCP proxy

- [Expense tools](https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py): `src/proxy_server/main.py`
- [Credit tools](https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py): `src/proxy_server/main.py`
- [Account summary](https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py): `src/proxy_server/main.py`
- [Passthrough tool](https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py): `src/proxy_server/main.py`
- [Tool forwarder](https://github.com/shubham23011/local-mcp-proxy-server/blob/main/src/proxy_server/main.py): `src/proxy_server/main.py`

### Remote service

- **Expense tracker MCP**

### Other components

- **MCP client**

## Connections

- MCP client → Expense tools: calls (evidence: `src/proxy_server/main.py`)
- MCP client → Credit tools: calls (evidence: `src/proxy_server/main.py`)
- MCP client → Account summary: calls (evidence: `src/proxy_server/main.py`)
- MCP client → Passthrough tool: calls (evidence: `src/proxy_server/main.py`)
- Expense tools → Tool forwarder: forwards (evidence: `src/proxy_server/main.py`)
- Credit tools → Tool forwarder: forwards (evidence: `src/proxy_server/main.py`)
- Account summary → Tool forwarder: forwards (evidence: `src/proxy_server/main.py`)
- Passthrough tool → Tool forwarder: forwards (evidence: `src/proxy_server/main.py`)
- Tool forwarder → Expense tracker MCP: calls tools (evidence: `src/proxy_server/main.py`)
