# mmdju/digikala-mcp architecture

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

- Interactive diagram: https://gitdiagram.com/mmdju/digikala-mcp
- Repository: https://github.com/mmdju/digikala-mcp

## Overview

Digikala MCP is a read-only Streamable HTTP service that lets AI agents query Digikala’s public marketplace data. The documented workflow is an agent request to `/mcp`, tool handling by the service, and an upstream read from Digikala, followed by a compact result for the agent. The README documents search, product research, comparison, and trend tools, plus caching and request pacing. The supplied tree contains no server implementation, so tool groups are documented capabilities rather than inspected code; internal dispatch and storage connections are not inferred.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_service["MCP Service"]
  node_mcp["MCP Endpoint"]
  node_market["Digikala API"]
  node_cache[("Response Cache")]
end

subgraph group_discovery["Product Discovery"]
  node_find["Search and Browse"]
  node_suggest["Suggestions and Filters"]
end

subgraph group_research["Product Research"]
  node_product["Product Information"]
  node_feedback["Reviews and Questions"]
end

subgraph group_decisions["Shopping Decisions"]
  node_compare["Compare and Value"]
  node_trends["Deals and Bestsellers"]
end

node_agent(("AI Agent"))

node_agent -->|"requests tools"| node_mcp
node_mcp -->|"reads marketplace"| node_market
node_mcp -->|"uses cache"| node_cache
node_mcp -->|"exposes tools"| node_find
node_mcp -->|"exposes tools"| node_suggest
node_mcp -->|"exposes tools"| node_product
node_mcp -->|"exposes tools"| node_feedback
node_mcp -->|"exposes tools"| node_compare
node_mcp -->|"exposes tools"| node_trends

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_mcp,node_market,node_cache toneBlue
class node_find,node_suggest toneAmber
class node_product,node_feedback toneMint
class node_compare,node_trends toneRose
class node_agent toneIndigo
```

## Components

### MCP Service

- **MCP Endpoint**
- **Digikala API**
- **Response Cache**

### Product Discovery

- **Search and Browse**
- **Suggestions and Filters**

### Product Research

- **Product Information**
- **Reviews and Questions**

### Shopping Decisions

- **Compare and Value**
- **Deals and Bestsellers**

### Other components

- **AI Agent**

## Connections

- AI Agent → MCP Endpoint: requests tools (evidence: `README.md`)
- MCP Endpoint → Digikala API: reads marketplace (evidence: `README.md`)
- MCP Endpoint → Response Cache: uses cache (evidence: `README.md`)
- MCP Endpoint → Search and Browse: exposes tools (evidence: `README.md`)
- MCP Endpoint → Suggestions and Filters: exposes tools (evidence: `README.md`)
- MCP Endpoint → Product Information: exposes tools (evidence: `README.md`)
- MCP Endpoint → Reviews and Questions: exposes tools (evidence: `README.md`)
- MCP Endpoint → Compare and Value: exposes tools (evidence: `README.md`)
- MCP Endpoint → Deals and Bestsellers: exposes tools (evidence: `README.md`)
