BILLZ MCP Bridge Server
Enables Claude to read and interact with BILLZ 2.0 data such as products, sales, customers, and categories via the BILLZ REST API.
README
BILLZ MCP ko'prik serveri
Bu loyiha BILLZ 2.0 REST API (https://api-admin.billz.ai) bilan Claude
o'rtasida "ko'prik" vazifasini bajaradi. Claude bu server orqali BILLZ'dagi
mahsulotlar, savdolar, mijozlar va boshqa ma'lumotlarni o'qiy oladi.
1. Nima kerak bo'ladi
- Node.js 18+ (loyihani ishga tushirish uchun)
- BILLZ 2.0 dan olingan Client ID (login) va API kalit (secret) (rasmda ko'rgan "Advanced settings" ichidagi ikkita maydon)
- Serverni internetga chiqarish uchun bepul hosting hisobi (masalan Render.com yoki Railway.app)
2. Endpoint yo'llari haqida
✅ Autentifikatsiya (login) qismi tasdiqlangan va to'g'ri ishlaydi —
rasmiy BILLZ hujjatidagi "Аутентификация" bo'limiga asosan yozilgan:
POST /v1/auth/login + {"secret_token": "..."}.
⚠️ Mahsulotlar/savdolar/mijozlar uchun ishlatilgan yo'llar
(/v1/products, /v1/orders, /v1/clients, /v1/categories) hali
taxminiy — chunki BILLZ hujjatidagi "Методы" bo'limi hali
tasdiqlanmagan. Bu bo'limni ochib, aniq yo'llarni tekshiring:
https://billzuz.notion.site/API-c2f91aa254f94f8eb7c1b26415dcb25b
Shuning uchun avvaliga faqat billz_request (umumiy so'rov) vositasini
ishlating — u har qanday to'g'ri yo'l bilan ishlaydi, chunki faqat to'g'ri
autentifikatsiyaga bog'liq. Masalan Claude'ga: "billz_request orqali GET
/v1/products yo'liga so'rov yubor" deb aytishingiz mumkin — agar yo'l
noto'g'ri bo'lsa, xatolik xabari chiqadi va tuzatib beraman.
3. Kompyuteringizda sinab ko'rish (ixtiyoriy)
cd billz-mcp-server
npm install
cp .env.example .env
# .env faylini ochib, BILLZ_LOGIN, BILLZ_SECRET va MCP_BRIDGE_SECRET
# qiymatlarini to'ldiring
npm start
Brauzerda http://localhost:3000/health ochilsa, server ishlayapti degani.
4. Internetga chiqarish (Render.com misolida)
- Bu loyihani GitHub'ga yuklang (yangi repository yarating, fayllarni push qiling).
- https://render.com saytida ro'yxatdan o'ting.
- New + → Web Service → GitHub repositoryingizni tanlang.
- Sozlamalar:
- Build Command:
npm install - Start Command:
npm start
- Build Command:
- Environment bo'limida quyidagilarni qo'shing:
BILLZ_BASE_URL=https://api-admin.billz.aiBILLZ_LOGIN= (sizning Client ID'ingiz, masalan200400493)BILLZ_SECRET= (sizning API kalitingiz)MCP_BRIDGE_SECRET= (o'zingiz o'ylab topgan uzun tasodifiy matn)
- Create Web Service tugmasini bosing va deploy tugashini kuting.
- Render sizga shunga o'xshash manzil beradi:
https://billz-mcp-server-xxxx.onrender.com
5. Claude'ga ulash
- Claude'da Customize → Connectors → "+" → Add custom connector oynasini oching (yoki tashkilot Owner'i Organization Settings orqali).
- Name:
BILLZ - Remote MCP server URL:
https://billz-mcp-server-xxxx.onrender.com/mcp(albatta oxirida/mcpbilan tugashi kerak — bu Notion yoki dashboard havolasi emas, endi bu sizning o'z serveringiz manzili) - Advanced settings ichidagi maydonlarga (agar OAuth emas, oddiy
token so'ralsa)
MCP_BRIDGE_SECRETqiymatini kiriting. - Add tugmasini bosing.
Shundan keyin Claude'ga: "BILLZ'dagi mahsulotlar ro'yxatini ko'rsat" yoki
"BILLZ'dan oxirgi 30 kunlik savdolarni ol" deb yozsangiz, u avtomatik
ravishda billz_get_products yoki billz_get_orders vositalarini chaqiradi.
6. Xavfsizlik eslatmalari
.envfaylini hech qachon GitHub'ga (ochiq repositoryga) yuklamang —.gitignorefayliga.envqatorini albatta qo'shing.MCP_BRIDGE_SECRET— bu serveringizni begonalardan himoya qiladi. Uni ham hech kimga bermang.- Agar
BILLZ_SECRETbiror joyda oshkor bo'lsa (masalan chatga yozib yuborilsa), BILLZ panelida darhol uni bekor qilib, yangisini yarating.
7. Fayllar tuzilishi
billz-mcp-server/
├── package.json # bog'liqliklar ro'yxati
├── .env.example # sozlamalar namunasi
├── README.md # ushbu qo'llanma
└── src/
├── billzClient.js # BILLZ API bilan gaplashish (autentifikatsiya + so'rov)
└── server.js # MCP server (Claude bilan gaplashadigan qism)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.