ZK

zerodha/kite-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

328 stars 140 forks 품질 79 트렌드 39MIT

zerodha/kite-mcp-server는 https://github.com/zerodha/kite-mcp-server.에서 가져온 MCP 서버 후보입니다.

개요

zerodha/kite-mcp-server는 https://github.com/zerodha/kite-mcp-server.에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

모델 컨텍스트 프로토콜(MCP) 서버로, AI 보조원에게 Kite Connect 트레이딩 API에 안전하게 접근할 수 있게 합니다. 이 서버는 AI 에이전트가 시장 데이터를 검색하고, 포트폴리오를 관리하며, 표준화된 인터페이스를 통해 거래를 실행할 수 있도록 합니다.

요약; 트레이더를 위한 요약

카이트 트레이딩 계좌에서 AI를 사용하고 싶으신가요? AI 클라이언트 설정에 https://mcp.kite.trade/mcp만 추가하세요. 설치나 API 키가 필요 없으며, 이미 호스팅되어 바로 사용할 수 있습니다.

특징

  • 포트폴리오 관리: 보유 자산, 포지션, 마진, 뮤추얼 펀드 투자 항목 보기
  • 주문 관리: 전체 주문 내역을 포함한 주문 입력, 수정 및 취소
  • GTT 주문: 정상 전 트리거 주문 관리
  • 시장 데이터 접근: 실시간 시세, 과거 데이터, OHLC 데이터
  • 페이지네이션 지원: 대규모 데이터셋(보유 내역, 주문, 거래)에 대한 자동 페이징 처리.
  • 종합 커버리지: 대부분의 Kite Connect API 엔드포인트를 구현함
  • 다중 배포 모드: stdio, HTTP, SSE, 하이브리드 모드(프로덕션)
  • 내장 문서: 런타임에 자동 제공되는 문서

퀵 스타트

호스팅 버전 (추천)

가장 쉽게 시작하는 방법은 'mcp에서 호스팅하는 버전입니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Kite MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with secure access to the Kite Connect trading API. This server enables AI agents to retrieve market data, manage portfolios, and execute trades through a standardized interface.

TL;DR for Traders

Want to use AI with your Kite trading account? Just add https://mcp.kite.trade/mcp to your AI client configuration. No installation or API keys required - it’s hosted and ready to use.

Features

  • Portfolio Management: View holdings, positions, margins, and mutual fund investments
  • Order Management: Place, modify, and cancel orders with full order history
  • GTT Orders: Good Till Triggered order management
  • Market Data Access: Real-time quotes, historical data, OHLC data
  • Pagination Support: Automatic pagination for large datasets (holdings, orders, trades)
  • Comprehensive Coverage: Implements most Kite Connect API endpoints
  • Multiple Deployment Modes: stdio, HTTP, SSE, and hybrid mode (production)
  • Built-in Documentation: Auto-served documentation at runtime

Quick Start

The easiest way to get started is with our hosted version at mcp.kite.trade. Both /mcp and /sse endpoints are available - no installation or API keys required on your end.

Quick Setup: Add the following to your MCP configuration:

https://mcp.kite.trade/mcp

Recommended: Use the new HTTP mode (/mcp endpoint) for better performance and reliability. You can use mcp-remote to connect to the hosted server.

For self-hosting with your own API keys, follow the installation steps below.

Prerequisites

  • For hosted version (recommended): Nothing! Just use https://mcp.kite.trade/mcp
  • For self-hosting: Go 1.21 or later
  • For self-hosting: Valid Kite Connect API credentials

Getting started

git clone https://github.com/zerodha/kite-mcp-server
cd kite-mcp-server

Configuration

Create a .env file with your Kite Connect credentials:

KITE_API_KEY=your_api_key
KITE_API_SECRET=your_api_secret
APP_MODE=http
APP_PORT=8080
APP_HOST=localhost
PUBLIC_BASE_URL=http://localhost:8080

You can also use the provided justfile to initialize the config.

just init-env

Running the Server

# Build and run
go build -o kite-mcp-server
./kite-mcp-server

# Or run directly
go run main.go

The server will start and serve a status page at http://localhost:8080/

Client Integration

Setup Guide

Claude Desktop (Hosted Mode)

GitHub에서 전체 README 보기

설치

npx mcp-remote https://mcp.kite.trade/mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "kite": { "command": "npx", "args": ["mcp-remote", "https://mcp.kite.trade/mcp"] } } }