# Mayar MCP server

> Connects AI agents to Mayar accounts to manage invoices, payment links, products, customers, transactions, and QRIS.

- Repository: https://github.com/mayarid/mayar-agent-plugin
- Page: https://hostedmcp.org/servers/mayarid/mayar-agent-plugin
- Transport: remote
- Stars: 0
- License: MIT
- Latest version: 1.0.0

## Install

### Claude Code

```sh
claude mcp add --transport http mayar-agent-plugin https://mcp.mayar.id/mcp
```

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

```json
{
  "mcpServers": {
    "mayar-agent-plugin": {
      "url": "https://mcp.mayar.id/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mayar-agent-plugin": {
      "type": "http",
      "url": "https://mcp.mayar.id/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mayar-agent-plugin","type":"http","url":"https://mcp.mayar.id/mcp"}'
```

### Codex

```sh
codex mcp add mayar-agent-plugin --url https://mcp.mayar.id/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mayar-agent-plugin]
url = "https://mcp.mayar.id/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http mayar-agent-plugin https://mcp.mayar.id/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mayar-agent-plugin": {
      "url": "https://mcp.mayar.id/mcp",
      "type": "http"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MAYAR_API_KEY` | no | no |  |

## FAQ

### What can the agent do with Mayar?

The agent can read and manage invoices, payment links, products, customers, transactions, memberships, coupons, webhooks, reviews, QRIS and license codes.

### How do I install this in Hermes Agent?

Install using the hermes plugins install command and then enable the plugin, ensuring your API key is added to your ~/.hermes/.env file.

### Does the plugin store my credentials?

No, the plugin does not store credentials; it reads the API key from the Hermes environment.
