Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
Kite Connect MCP
ภาพรวม
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Zerodha Kite Connect v3 for AI agents: orders (dry-run by default), GTT, alerts, portfolio, quotes
สามเสาของ PopNx MCP
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
- เสียงผู้ใช้iยังไม่มีรีวิวรีวิวเปิดพร้อมระบบบัญชีในขั้นถัดไป
- ผลตรวจเบื้องต้นของเราiผ่าน 1 จาก 1 ข้อตรวจจากข้อมูลที่เปิดอยู่ ยังไม่ได้สแกนโค้ด
- การใช้งานiยังไม่ได้วัด★ –
ใช้ทำอะไรได้
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
- การเชื่อมต่อ: รันบนเครื่อง
- ช่องทาง (transport): stdio
- หมวด: ร้านค้าออนไลน์และรับเงิน
- ต้องใส่ค่าเหล่านี้: KITE_API_KEY, KITE_API_SECRET
ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ก่อนติดตั้ง
- ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
- รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
- ค่าที่คุณต้องใส่เอง:
KITE_API_KEY,KITE_API_SECRET,KITE_MCP_AUTH_MODE,KITE_TOKEN_FILE,KITE_MCP_TRADING_MODE,KITE_MCP_READ_ONLY
ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
- PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"kite-connect": {
"command": "uvx",
"args": [
"kite-connect-mcp",
"serve"
],
"env": {
"KITE_API_KEY": "ใส่ค่าของคุณ",
"KITE_API_SECRET": "ใส่ค่าของคุณ",
"KITE_MCP_AUTH_MODE": "ใส่ค่าของคุณ",
"KITE_TOKEN_FILE": "ใส่ค่าของคุณ",
"KITE_MCP_TRADING_MODE": "ใส่ค่าของคุณ",
"KITE_MCP_READ_ONLY": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add kite-connect --env KITE_API_KEY='ใส่ค่าของคุณ' --env KITE_API_SECRET='ใส่ค่าของคุณ' --env KITE_MCP_AUTH_MODE='ใส่ค่าของคุณ' --env KITE_TOKEN_FILE='ใส่ค่าของคุณ' --env KITE_MCP_TRADING_MODE='ใส่ค่าของคุณ' --env KITE_MCP_READ_ONLY='ใส่ค่าของคุณ' -- uvx kite-connect-mcp serveเติมค่าที่เว้นว่างไว้ก่อนรัน
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"kite-connect": {
"command": "uvx",
"args": [
"kite-connect-mcp",
"serve"
],
"env": {
"KITE_API_KEY": "ใส่ค่าของคุณ",
"KITE_API_SECRET": "ใส่ค่าของคุณ",
"KITE_MCP_AUTH_MODE": "ใส่ค่าของคุณ",
"KITE_TOKEN_FILE": "ใส่ค่าของคุณ",
"KITE_MCP_TRADING_MODE": "ใส่ค่าของคุณ",
"KITE_MCP_READ_ONLY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"kite-connect": {
"type": "stdio",
"command": "uvx",
"args": [
"kite-connect-mcp",
"serve"
],
"env": {
"KITE_API_KEY": "ใส่ค่าของคุณ",
"KITE_API_SECRET": "ใส่ค่าของคุณ",
"KITE_MCP_AUTH_MODE": "ใส่ค่าของคุณ",
"KITE_TOKEN_FILE": "ใส่ค่าของคุณ",
"KITE_MCP_TRADING_MODE": "ใส่ค่าของคุณ",
"KITE_MCP_READ_ONLY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าที่ต้องใส่เอง
- API key of your Kite Connect app (developers.kite.trade)
- API secret of your Kite Connect app, needed for the daily login (or use KITE_API_SECRET_FILE)
KITE_MCP_AUTH_MODEenvmanaged (this server owns the daily login) or external (read a token file another program writes)KITE_TOKEN_FILEenvPath of the access-token file (default: ~/.local/state/kite-connect-mcp/access_token.json)KITE_MCP_TRADING_MODEenvdry_run (default: writes are only previewed) or live (writes need a confirmation token)KITE_MCP_READ_ONLYenvtrue hides every tool that can change the account
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ทำอะไรได้บ้าง
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub techfreakworm ซึ่งเป็นเจ้าของ repo
- … ยังไม่ตรวจ
ยังมีคนดูแล
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- … ยังไม่ตรวจ
มีสัญญาอนุญาต (license)
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- – ไม่เกี่ยว
endpoint ตอบ
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
- … ยังไม่ตรวจ
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับตัวอื่นในหมวด ร้านค้าออนไลน์และรับเงินi
- ดาวมากกว่า 0% ของอีก 1748 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 87% ของอีก 1748 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1748 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
Kite Connect MCP ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
ต้องใส่ค่าเหล่านี้: KITE_API_KEY, KITE_API_SECRET
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.1) เข้า registry 3 วันที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
มีตัวไหนใช้แทนได้บ้าง?
ในหมวดเดียวกันมี Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
ตัวที่ใช้แทนได้
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Stripe MCP
server ทางการของ Stripe ให้ AI ดูและจัดการลูกค้า สินค้า การชำระเงิน และใบแจ้งหนี้ ต่อผ่านคลาวด์ของ Stripe และล็อกอินแบบ OAuth
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
kite-connect-mcp
A self-hostable Model Context Protocol server for the Zerodha Kite Connect v3 API. Run it on your own machine or server with your own Kite Connect app, and let an AI assistant read your account, market data and orders. Every write is a dry run by default.
Status: beta (0.x). Every Kite Connect v3 capability is covered and tested offline against a fake Kite. The
read tools, the margin and charge calculators and the ticker have also been checked against the live API; live
writes (orders, GTTs, alerts, mutual funds) have not, so expect rough edges there and report them. Changes are
listed in CHANGELOG.md.
This project is not affiliated with or endorsed by Zerodha.
Why another Kite MCP server?
Zerodha publishes an official server (zerodha/kite-mcp-server) and hosts it at mcp.kite.trade. This project differs in three ways:
- It covers the whole paid Kite Connect API. That includes alerts, GTTs, order and basket margins, charges, position conversion, holdings authorisation, auctions, mutual funds and the WebSocket ticker.
- It's built for one person self-hosting. The daily token is persisted and shared by every client you connect.
- It has a safety layer for orders: dry runs, two-step confirmation, value caps, allow-lists, a kill switch, an audit log and rate limiting.
The full evaluation and reasoning are in docs/DECISION.md.
What you need
- A Zerodha account, and a Kite Connect app from the developer console.
- Connect (paid, ₹500/month per API key) includes live quotes, the WebSocket and historical candles.
- Personal (free) covers orders, GTTs, alerts, portfolio and margins, but no market data. Market-data tools return a clear "needs the paid plan" error.
- Python 3.11+ (or Docker).
- To place live orders: the order requests must come from a static IP registered in the developer console. This is a SEBI/NSE rule, in force since April 2026. Reads work from any IP.
The developer-console steps are in docs/KITE_SETUP.md: creating the app, the API key and secret, the redirect and postback URLs, the subscription, and the static IP.
Quick start (local, stdio)
# install
uv tool install kite-connect-mcp # or: pipx install kite-connect-mcp / pip install kite-connect-mcp
or run without installing: uvx kite-connect-mcp --help
or the image: docker pull ghcr.io/techfreakworm/kite-connect-mcp
configure: credentials from env vars or files (mode 600)
export KITE_API_KEY=your_api_key export KITE_API_SECRET_FILE=~/.config/kite-connect-mcp/api_secret
kite-connect-mcp check-config # validates settings, never prints credentials kite-connect-mcp login --listen # prints the Kite login link and waits for the redirect (managed mode) kite-connect-mcp status # session and safety status
For login --listen, register http://127.0.0.1:8765/callback as your app's redirect URL. Every setting is listed in docs/CONFIGURATION.md.
Add it to an MCP client, e.g. Claude Desktop (claude_desktop_config.json) or any client that launches stdio servers:
{
"mcpServers": { "kite": { "command": "kite-connect-mcp", "args": ["serve"], "env": { "KITE_API_KEY": "your_api_key", "KITE_API_SECRET_FILE": "/home/you/.config/kite-connect-mcp/api_secret" } } } }
To run it on a server over HTTP, see docs/SELF_HOSTING.md. It covers systemd and Docker, a reverse proxy with TLS, bearer-token auth, and the login callback.
The safety model, in short
| Guard | Default |
|---|---|
Every write tool takes dry_run | true: validate, run the checks, preview the exact request and Kite's margin calculation; send nothing |
| Live trading switch | off (KITE_MCP_TRADING_MODE=dry_run) |
| Confirmation | a live write needs the single-use confirmation_token from a dry run of the *identical* call (or, if you opt in, an explicitly allow-listed instrument) |
| Value caps | ₹10,000 per order, ₹50,000 per day, 20 live orders per day |
| Allow-lists | instruments, exchanges, products, varieties, order types, sides (all optional) |
| Read-only mode | KITE_MCP_READ_ONLY=true hides every write tool, and the HTTP client refuses write endpoints too |
| Kill switch | a file; a tool can switch it on, only a person can switch it off |
| Audit log | every dry run, refusal, live send and result, as JSON lines; the intent is fsynced *before* sending |
| Rate limits | kept under Kite's 1/s (quotes), 3/s (historical), 10/s (orders and the rest), 400 orders/min |
| Retries | reads back off and retry; writes are never retried. A timeout is reported as an unknown outcome: check the order book before trying again |
Details: docs/SAFETY.md.
Sessions and the daily login
Kite access tokens expire every day at about 06:00 IST. A request token is single-use. Logging in again with the same API key invalidates the previous access token. So one app should have exactly one program that owns the daily login.
- `managed` mode (default). This server owns the login. The
logintool (orkite-connect-mcp login) gives you the link. Kite redirects to this server's/callback, which checks the one-timestate, exchanges therequest_token, and stores the token with mode 600. - `external` mode. Another program owns the login and writes a token file. This server only reads that file, picks up the new token every morning without a restart, and never writes, deletes or logs out that token.
Tools
58 tools in 11 toolsets (53 by default: the mutual-fund writes are opt-in). Tool names follow the official server where one exists, so prompts carry over. Pick toolsets with KITE_MCP_TOOLSETS and hide single tools with KITE_MCP_EXCLUDED_TOOLS; kite-connect-mcp tools lists what your configuration exposes.
| Toolset | Tools |
|---|---|
| session | session_status, login, complete_login, logout |
| account | get_profile, get_margins |
| orders | place_order, modify_order, cancel_order, get_orders, get_order_history, get_trades, get_order_trades |
| gtt | get_gtts, get_gtt, place_gtt_order, modify_gtt_order, delete_gtt_order |
| alerts | get_alerts, get_alert, get_alert_history, create_alert (simple and ATO), modify_alert, delete_alerts |
| portfolio | get_holdings, get_positions, get_auctions, convert_position, authorise_holdings |
| market | get_quotes, get_ohlc, get_ltp, get_historical_data, search_instruments, get_instrument, get_instruments_status, refresh_instruments |
| margins | get_order_margins, get_basket_margins, get_order_charges |
| mf | get_mf_holdings, get_mf_orders, get_mf_sips, search_mf_instruments; opt-in: place_mf_order, cancel_mf_order, place_mf_sip, modify_mf_sip, cancel_mf_sip |
| ticker | ticker_subscribe, ticker_unsubscribe, ticker_get_ticks, ticker_status, ticker_order_updates, ticker_stop |
| safety | get_safety_status, get_audit_log, engage_kill_switch |
Every argument of every tool is in docs/TOOLS.md.
Development
git clone https://github.com/techfreakworm/kite-connect-mcp && cd kite-connect-mcp
python -m venv .venv && .venv/bin/pip install -e ".[dev]" .venv/bin/pytest # never touches the network: Kite is faked in-process .venv/bin/ruff check . && .venv/bin/ruff format --check .
See CONTRIBUTING.md. Security reports: SECURITY.md.
Disclaimer
Trading involves risk. This software can place real orders on a real brokerage account when you configure it to. AI systems are unpredictable: keep the caps low, use dry runs, and review what you confirm. The software is provided "as is", without warranty of any kind (see LICENSE). You are responsible for complying with Zerodha's terms, SEBI's rules (including the static-IP and algo rules) and exchange data policies. Kite Connect data may not be redistributed.
Licence
MIT © 2026 Mayank Gupta