Skip to main content
Glama
README.md
# HamroLink MCP Server & Stdio Bridge

Official **Model Context Protocol (MCP)** integration hub and zero-dependency Node.js stdio bridge for **[HamroLink](https://hamrolink.com)** — Nepal's AI Website Builder & Business Operating System (Business OS).

Connect **Claude Desktop**, **Cursor**, **ChatGPT**, **Gemini**, or custom AI agents to manage live Nepali websites, `0% commission` eSewa/Khalti/Fonepay QR storefronts, restaurant table QR menus, School OS notices, 6-stage Consultancy CRMs, Udharo credit ledgers, Fleet & Logistics tracking, Amazon SES emails, and 13% IRD VAT invoices across **98 live tenant-scoped MCP tools**.

---

## Live Production Endpoints

| Protocol / Surface | Production Endpoint |
| :--- | :--- |
| **MCP SSE / HTTP Endpoint** | `https://app.hamrolink.com/api/mcp/sse` |
| **MCP JSON-RPC 2.0 POST Endpoint** | `https://app.hamrolink.com/api/mcp/messages` |
| **Developer Keys & Scopes Portal** | `https://app.hamrolink.com/developer/mcp` |
| **MCP Architecture & Docs** | [hamrolink.com/features/mcp-server](https://hamrolink.com/features/mcp-server) |

> Generate a scoped Bearer token (`Authorization: Bearer <API_KEY>`) inside **Settings -> Developer -> MCP Access** at [app.hamrolink.com/developer/mcp](https://app.hamrolink.com/developer/mcp).

---

## Quick Setup by AI Client

### 1. Claude Desktop & Cursor (Direct Remote SSE)

Add this entry to your Claude Desktop config (`claude_desktop_config.json`) or Cursor MCP config (`.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "hamrolink": {
      "url": "https://app.hamrolink.com/api/mcp/sse",
      "headers": {
        "Authorization": "Bearer YOUR_HL_LIVE_API_KEY"
      }
    }
  }
}
```

Ready-to-use templates are included in [`examples/claude_desktop_config.json`](./examples/claude_desktop_config.json) and [`examples/cursor_mcp.json`](./examples/cursor_mcp.json).

### 2. Local Node.js Stdio-to-HTTP Bridge (Node 18+, Zero Dependencies)

If your MCP client requires a local `stdio` executable rather than a remote `url`:

```bash
git clone https://github.com/SumanBasnet07/hamrolink-mcp.git
cd hamrolink-mcp
HAMROLINK_API_KEY="YOUR_HL_LIVE_API_KEY" node ./src/index.mjs
```

Or wire it into `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "hamrolink": {
      "command": "node",
      "args": ["/absolute/path/to/hamrolink-mcp/src/index.mjs"],
      "env": {
        "HAMROLINK_API_KEY": "YOUR_HL_LIVE_API_KEY",
        "HAMROLINK_MCP_URL": "https://app.hamrolink.com/api/mcp/messages"
      }
    }
  }
}
```

### 3. ChatGPT Actions (OpenAPI 3.1.0) & cURL

Import [`examples/chatgpt_openapi.json`](./examples/chatgpt_openapi.json) with Bearer authentication, or test directly via `curl`:

```bash
curl -X POST https://app.hamrolink.com/api/mcp/messages \
  -H "Authorization: Bearer YOUR_HL_LIVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "commerce.list_products",
      "arguments": {}
    }
  }'
```

---

## End-to-End Business Playbooks (Copy-Paste Prompts)

Ready-to-run prompt sequences (English & Romanized Nepali) for operating a complete business workflow through HamroLink MCP:

| Vertical / Workflow | Guide & Copy-Paste Prompts |
| :--- | :--- |
| **Full E-Commerce Store (0% Fee QR)** | [`playbooks/full-ecommerce-store.md`](./playbooks/full-ecommerce-store.md) — Site launch, multi-variant size/color products (parent-product metered), eSewa/Khalti/Fonepay QR setup, flash sales, Udharo & 13% VAT invoicing |
| **Full Education Consultancy CRM** | [`playbooks/full-education-consultancy.md`](./playbooks/full-education-consultancy.md) — Consultancy site, services, 6-stage visa pipeline, overdue document radar, Amazon SES email reminders & 13% VAT bills |
| **Full Restaurant & QR Menus** | [`playbooks/full-restaurant-qr.md`](./playbooks/full-restaurant-qr.md) — Printable Tables 1–10 QR menus, dish discounts & live Kitchen Order Tickets (KOT) |
| **Full School Website & Admissions** | [`playbooks/full-school-os.md`](./playbooks/full-school-os.md) — Exam/holiday notices, calendar events & student admission enrollments |
| **Full Fleet & Logistics OS** | [`playbooks/full-fleet-os.md`](./playbooks/full-fleet-os.md) — Vehicle status audits, diesel fuel logs, workshop repairs, serialized spare parts, drivers & trips |
| **Custom HTML/CSS/JS SDK v2** | [`examples/custom-html-sdk/delivery-calculator.html`](./examples/custom-html-sdk/delivery-calculator.html) · [`consultancy-lead-card.html`](./examples/custom-html-sdk/consultancy-lead-card.html) |

---

## Available API Scopes & Security Gates

- **Scoped API Tokens**: `website:read`, `website:write`, `crm:read`, `blog:write`, `commerce:write`, `consultancy:read`, `school:write`, `email:send`, `analytics:read`
- **Human-in-the-Loop Preflight**: Sensitive operations such as `website.preflight` -> `website.create` and outbound dispatch tools like `consultancy.send_reminder` require explicit operator confirmation before executing live mutations.
- **Tenant Isolation**: Every token is mathematically bound to a single merchant workspace and respects plan entitlements (e.g., `invoice.create`, `invoice.list`, and analytics tools require eligible plans).

---

## Complete Catalog of 98 Live MCP Tools

### Website, Themes, Pages & Media (29 Tools)
- `website.list_templates` — Lists available HamroLink templates with visual preview thumbnails.
- `website.preflight` — Step 1 of site creation: validates subdomain and returns a preview proposal.
- `website.create` — Step 2 of site creation: builds and publishes a bilingual site from an approved proposal.
- `website.list` — Lists all active websites owned by the account.
- `website.verify` — Developer schema check for raw `SiteCreationPackage` payloads.
- `website.compile` — Dry-run compile of a `SiteCreationPackage` without persisting.
- `website.persist` — Persists a hand-authored `SiteCreationPackage`.
- `website.publish` — Publishes draft pages and re-indexes `businessState` for the embedded Website AI Chatbot.
- `website.delete` — Soft-deletes a tenant website.
- `add_website_page` — Adds a pre-built or custom HTML/CSS/JS page (isolated sandboxed iframe) and links it in the navbar.
- `update_navbar` — Adds or removes links in the top header navigation bar.
- `change_theme` — Updates global visual themes across storefront headers, footers, and pages.
- `site.get_layout` — Retrieves global header, footer, navigation links, and company profile details.
- `site.update_layout` — Updates site-wide header and footer sections.
- `site.update_theme` — Updates visual color and typography tokens site-wide.
- `site.update_header` — Updates navbar logo, links, CTA, and contact details.
- `site.update_footer` — Updates footer description, address, phone, email, and links.
- `site.update_details` — Updates business profile details (name, phone, address, VAT/PAN, social links).
- `site.apply_template` — Applies a compatible same-niche template design to an existing site.
- `page.list` — Lists all pages on a site (`/`, `/about`, `/contact`, etc.).
- `page.get` — Retrieves section structure and content for a page slug.
- `page.update` — Updates a page or injects scoped HTML/CSS and sandboxed JS.
- `page.add_section` — Appends or prepends structured or custom HTML/CSS/JS sections.
- `page.remove_section` — Removes a section by ID or type.
- `page.create` — Creates and publishes a new page with optional nav linking.
- `page.delete` — Permanently deletes a non-home page and invalidates edge caches.
- `media.upload` — Transcodes images into optimized WebP assets on Cloudflare R2 CDN.
- `media.list` — Lists uploaded media assets in the library.
- `media.get_presigned_url` — Generates a direct presigned R2 PUT upload URL.

### Blog & Editorial SEO AI (9 Tools)
- `blog.list_authors` — Lists saved blog authors for a site.
- `blog.list_posts` — Lists published blog articles.
- `blog.get_post` — Retrieves a single blog post by slug.
- `blog.create_post` — Creates and publishes an SEO Markdown blog post.
- `blog.update_post` — Updates an existing blog post.
- `blog.delete_post` — Deletes a blog post from a site.
- `editorial.opportunity_discover` — Discovers high-impact blog topic opportunities from site trends and inquiries.
- `editorial.generate_article` — Generates or updates an SEO blog post with a 7-metric quality scorecard.
- `editorial.score_draft` — Evaluates a draft article for SEO quality, brand voice, and duplication risk.

### E-Commerce Storefronts, Orders & Local QR Checkout (17 Tools)
- `commerce.list_products` — Lists store products and stock levels.
- `commerce.get_product` — Retrieves single-product details.
- `commerce.create_product` — Adds a product with optional size/weight/color variants and NPR pricing.
- `commerce.update_product` — Updates product metadata, variants, or stock counts cleanly.
- `commerce.delete_product` — Deletes a product from inventory.
- `commerce.category_list` — Lists distinct product categories and counts.
- `commerce.sales_report` — Aggregates order units, paid vs. pending NPR revenue, and completed vs. cancelled stats.
- `commerce.apply_offer_or_discount` — Applies offers or promo codes (`DASHAIN20`) to variants or the store.
- `commerce.list_promotions` — Read-only listing of active product offers, flash sales, and countdown banner states.
- `commerce.create_promotion` — Creates multi-product festival flash-sale campaigns with optional countdown banners.
- `commerce.update_payment_config` — Configures Fonepay/eSewa/Khalti/Bank QR URLs and Cash on Delivery (COD) settings.
- `commerce.set_free_shipping` — Sets storewide free-shipping thresholds and shipping rates in NPR.
- `commerce.order_create` — Creates a verified order with atomic stock validation and checkout calculation.
- `commerce.order_list` — Queries e-commerce orders, line items, and payment statuses.
- `commerce.order_get` — Retrieves full single-order details and attribution metadata.
- `commerce.order_update_status` — Updates order fulfillment lifecycle stages.
- `commerce.order_update_payment_status` — Independently updates payment status (`PENDING`, `PAID`, `FAILED`, `REFUNDED`).

### Restaurant QR Menus, Tables & Kitchen Tickets (8 Tools)
- `restaurant.menu_list` — Queries dishes, categories, dietary flags, and offers.
- `restaurant.menu_create` — Adds a new dish or food item.
- `restaurant.menu_update` — Updates an existing menu item.
- `restaurant.apply_discount` — Applies a discount percentage to a restaurant dish.
- `restaurant.order_list` — Queries live dine-in, takeaway, delivery orders, and reservations.
- `restaurant.order_update_status` — Updates live Kitchen Order Ticket (KOT) lifecycle stages and prep times.
- `restaurant.table_list` — Lists dining tables, capacity, QR codes, and occupancy status.
- `restaurant.table_create` — Adds a dining table with QR ordering support.

### CRM, Udharo Ledger, Email & 13% VAT Invoicing (10 Tools)
- `crm.list_leads` — Queries customer and student leads captured via website forms and the website AI chatbot.
- `crm.customer_list` — Searches CRM customers with spend history and last order dates.
- `crm.lead_create` — Logs a new CRM contact with optional opening Udharo balance.
- `crm.udharo_manage` — Manages customer Udharo credit ledgers (list, add credit, record payment, settle, prepare 1-click WhatsApp share reminders).
- `email.draft` — Drafts branded Amazon SES emails with variable interpolation (`{{name}}`, `{{order_id}}`).
- `email.send` — Dispatches approved emails via Amazon SES with quota tracking.
- `invoice.create` — Generates itemized NPR bills with optional 13% IRD VAT, PAN numbers, QR links, and email/1-click `wa.me` share support.
- `invoice.list` — Lists past issued invoices and payment statuses.
- `invoice.get_details` — Retrieves invoice line items, taxes, and view/share URL.
- `invoice.update_status` — Updates invoice status (`paid`, `pending`, `void`, `cancelled`).

### Education Consultancy & School OS (16 Tools)
- `consultancy.pipeline_overview` — Returns applicant counts across all 6 study-abroad admissions stages.
- `consultancy.student_list` — Filters student profiles by stage, destination country, or missing documents.
- `consultancy.student_detail` — Retrieves full student record, universities, test scores, and documents.
- `consultancy.urgent_documents` — Finds applicants with missing or overdue documents by deadline urgency.
- `consultancy.send_reminder` — Sends Amazon SES document reminder emails to students missing required paperwork.
- `consultancy.create_service` — Adds visa counseling or test-prep service packages.
- `consultancy.list_services` — Lists active consultancy services and packages.
- `consultancy.create_lead` — Registers a prospective student inquiry in the consultancy CRM.
- `consultancy.list_leads` — Lists consultancy leads with stage/country filtering.
- `consultancy.update_lead_stage` — Moves a student lead across pipeline stages and logs counselor notes.
- `consultancy.note_search` — Searches student counseling notes by keyword or student name.
- `school.application_submit` — Registers a student admission inquiry on the school portal.
- `school.create_notice` — Publishes official school announcements (Exam Schedule, Holiday, Admission Open).
- `school.list_notices` — Retrieves published school noticeboard items.
- `school.create_event` — Schedules school calendar events and sports/academic dates.
- `school.list_enrollments` — Lists admission applications and enrollment inquiries.

### Fleet & Logistics OS (6 Tools)
- `fleet.query` — Read-only queries across vehicles, fuel totals, spare part serial history, and license expiries.
- `fleet.log_fuel` — Logs diesel/petrol entries with station, odometer, and NPR fuel spend.
- `fleet.create_repair` — Records workshop maintenance invoices and replaced parts.
- `fleet.manage_part` — Tracks serialized spare parts stock, installations, removals, and truck transfers.
- `fleet.manage_driver` — Assigns or unassigns drivers with license checks.
- `fleet.update_trip_status` — Updates live vehicle routes (`Idle`, `Ongoing`, `Completed`) and odometers.

### Analytics & Business Intelligence (3 Tools)
- `analytics.get_summary` — Retrieves measured traffic, sessions, funnel steps, and top viewed products.
- `analytics.get_journey_report` — Retrieves customer acquisition referrer/UTM funnel analytics.
- `bi.get_insights` — Cross-domain Business Brain insights and operational recommendations.

---

## Learn More About HamroLink

- **Main Platform**: [hamrolink.com](https://hamrolink.com) — Start Free Forever (`NPR 0`), Starter from `रु 199/mo`
- **Pricing (NPR)**: [hamrolink.com/pricing](https://hamrolink.com/pricing)
- **Website Templates (100+ Designs)**: [hamrolink.com/templates](https://hamrolink.com/templates)
- **Comparisons**: [vs Nepdora](https://hamrolink.com/compare/nepdora) · [vs ShriGo](https://hamrolink.com/compare/shrigo) · [vs Chittoweb](https://hamrolink.com/compare/chittoweb) · [vs Blanxer](https://hamrolink.com/compare/blanxer)
- **Vertical Solutions**: [E-Commerce](https://hamrolink.com/solutions/ecommerce) · [School OS](https://hamrolink.com/solutions/school) · [Consultancy CRM](https://hamrolink.com/solutions/consultancy) · [Fleet OS](https://hamrolink.com/features/fleet-logistics-os)

## License

[MIT](./LICENSE) © 2026 HamroLink