Skip to main content
Glama
README.md
# Paylo MCP Server
### The Commerce Discovery Gateway for AI Agents

The **Paylo MCP Server** connects AI agents to the Paylo storefront network via the [Model Context Protocol](https://modelcontextprotocol.io). Agents can search merchants, browse products and services, and retrieve catalog data — all through a live hosted SSE endpoint.

---

## Connect

The server is hosted at:

```
https://mcp.usepaylo.com/sse
```

No local setup required. Point your MCP client at this URL.

---

## Available Tools

| Tool | Description |
|------|-------------|
| `search_storefronts` | Search active Paylo storefronts by name, keyword, or category |
| `get_storefront` | Get full catalog summary and stats for a storefront by slug |
| `search_products` | Search products across all stores or within a specific storefront |
| `get_product` | Get details for a single product by storefront slug and product slug |
| `search_services` | Search services across all stores or within a specific storefront |
| `get_categories` | List categories available within a storefront |

All responses include UTM-tagged URLs for attribution tracking.

---

## Architecture

```
AI Agent → MCP (SSE) → Paylo MCP Server → usepaylo.com API → Storefront Catalog
```

The MCP server is a thin proxy. It does not access the database directly — all data is fetched from the Paylo backend API and returned as structured JSON.

---

## Self-Hosting

If you prefer to run your own instance:

```bash
git clone https://github.com/scephiro/paylo-mcp-server.git
cd paylo-mcp-server
npm install
npm run build
```

Set environment variables:

```env
GPT_API_SECRET=your_backend_secret
PAYLO_API_BASE_URL=https://usepaylo.com   # default
MCP_PORT=3030                              # default
```

Start the server:

```bash
node build/index.js
```

The server listens on `http://0.0.0.0:3030`. Connect via `GET /sse` and send messages to `POST /messages?sessionId=<id>`.

---

## Docker

```bash
docker run -p 3030:3030 \
  -e GPT_API_SECRET=your_secret \
  ghcr.io/scephiro/paylo-mcp-server:latest
```

---

## License

MIT — see [LICENSE](LICENSE).

TDQS

A3.5/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: check_payment_status handles payment status, create_order creates orders, generate_payment_link generates payment links, get_product_details retrieves product info, list_merchants lists merchants, and search_products searches products. An agent can easily differentiate between these operations.

Naming Consistency5/5

All tools follow a consistent verb_noun naming pattern (e.g., check_payment_status, create_order, generate_payment_link, get_product_details, list_merchants, search_products). This uniformity makes the tool set predictable and easy to understand.

Tool Count5/5

With 6 tools, the server is well-scoped for handling payments and product discovery in a Paylo context. Each tool serves a clear and necessary function, avoiding bloat while covering core workflows like order creation, payment processing, and product browsing.

Completeness4/5

The tool set covers key operations for payment processing and product discovery, including order creation, payment link generation, status checking, and product/merchant listing. A minor gap is the lack of tools for updating or deleting orders, but agents can likely work around this given the focused scope on payment flows.

Maintenance

ActivityInactive
ResponsivenessNo issues