# Bonbama Discounts

> Bonbama Discounts is an open-source MCP server for e-commerce. Read-only MCP server exposing Gorgan business listings and discount codes from bonbama.ir. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/mohammad-abbasi-sh/bonbama-mcp
- **MCP Registry name:** io.github.mohammad-abbasi-sh/bonbama-mcp
- **Categories:** [e-commerce](https://ai-powered.com/categories/e-commerce)
- **Listing updated:** 2026-11-19

## About

The README says this server reads bonbama.ir live on every call, so campaign status, prices and expiry dates reflect the page at the moment of the request rather than a stored copy. It covers Gorgan-area businesses, their categories, active discount campaigns and magazine articles, and returns literal discount codes only when they appear as text on a business page.

It runs locally over stdio through a PyPI package, or can be reached as a hosted streamable HTTP endpoint. Tools cover business search, business detail, category listing, site-wide discount search, article search and a reachability check. Personal codes that require a free bonbama.ir account are not returned.

The project is unofficial and not affiliated with Bonbama. It is aimed at people who want to ask an AI assistant about local deals in Gorgan and verify them on the site before buying. The README notes that it is licensed under PolyForm Noncommercial 1.0.0, so commercial use requires a separate license.

## Features

- **Live business lookup:** Fetches business details, city, rating and active campaigns directly from bonbama.ir pages on each call.
- **Discount campaign search:** Searches active discount campaigns site-wide, with an empty query returning popular campaigns.
- **Category browsing:** Lists business categories with Persian names and business and campaign counts.
- **Literal code extraction:** Reports discount codes printed as text on business pages, with the note attached to each code.
- **Magazine article search:** Searches Bonbama magazine guides and best-of-Gorgan lists by keyword.
- **Read-only access:** Performs no writes to bonbama.ir and needs no API key or login.

## Good for

- Finding current discount codes for a Gorgan restaurant or shop before visiting
- Comparing active campaigns across businesses in one category
- Asking an assistant for local best-of lists from the Bonbama magazine
- Checking whether bonbama.ir is reachable before running other queries

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add bonbama-mcp -- uvx bonbama-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add bonbama-mcp -- uvx bonbama-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.bonbama-mcp]
command = "uvx"
args = ["bonbama-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user bonbama-mcp uvx -- bonbama-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "bonbama-mcp": {
      "command": "uvx",
      "args": [
        "bonbama-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 of 6 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `bb_search_businesses` (name suggests: reads): Search businesses by keyword and/or category slug.
- `bb_get_business` (name suggests: reads): Full details for one business, including active campaigns and published codes.
- `bb_list_categories` (name suggests: reads): All business categories with Persian names and counts.
- `bb_search_discounts` (name suggests: reads): Search active discount campaigns site-wide.
- `bb_search_articles` (name suggests: reads): Search the Bonbama magazine.
- `bb_health`: Check whether bonbama.ir is reachable.

## FAQ

### Does Bonbama Discounts need an API key or account?

The README says no key and no login are needed, because it reads public sitemaps and pages.

### Can Bonbama Discounts generate personal discount codes?

No. Codes that require pressing the button on bonbama.ir with a free account are per-user and are never returned by the server.

### How do I install the local version?

The README gives an MCP client config using uvx with the bonbama-mcp package, and also lists a python -m bonbama_mcp.server option.

### Is Bonbama Discounts affiliated with Bonbama?

No. The README states it is an unofficial project and not affiliated with Bonbama.

### Is Bonbama Discounts free?

Yes. Bonbama Discounts is open source, so you can use and self-host it for free.

### How do I add Bonbama Discounts to Claude Code?

Run this command in your terminal: claude mcp add bonbama-mcp -- uvx bonbama-mcp

### What are the best alternatives to Bonbama Discounts?

The closest alternatives to Bonbama Discounts are Digistyle Fashion, Coupossum, bol.com Advertiser MCP and Coupon Swarm.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Digistyle Fashion](https://ai-powered.com/mcp/digistyle-fashion): Digistyle Fashion is an open-source MCP server for e-commerce.
- [Coupossum](https://ai-powered.com/mcp/coupossum): Coupossum is a free MCP server for e-commerce.
- [bol.com Advertiser MCP](https://ai-powered.com/mcp/bol-com-advertiser-mcp): bol.com Advertiser MCP is a paid MCP server for marketing and seo.
- [Coupon Swarm](https://ai-powered.com/mcp/coupon-swarm): Coupon Swarm is an open-source MCP server for e-commerce.

---
Source: https://ai-powered.com/mcp/bonbama-discounts
