ZK

zerodha/kite-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

328 stars 140 forks Качество 79 Тренд 39MIT

zerodha/kite-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/zerodha/kite-mcp-server.

Обзор

zerodha/kite-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/zerodha/kite-mcp-server.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), предоставляющий ассистентам ИИ безопасный доступ к торговому API Kite Connect. Этот сервер позволяет агентам ИИ получать рыночные данные, управлять портфелями и совершать сделки через стандартизированный интерфейс.

Кратко; DR для трейдеров

Хотите использовать ИИ с вашим торговым счётом Kite? Просто добавьте https://mcp.kite.trade/mcp в конфигурацию клиента ИИ. Ключи установки или API не требуются — он размещён и готов к использованию.

Особенности

  • Управление портфелем: Просмотр активов, позиций, маржи и инвестиций в паевые инвестиционные фонды
  • Управление заказами: размещение, изменение и отмена заказов с полной историей заказов
  • GTT Orders: Управление заказами с Good Till Triggered
  • Доступ к рыночным данным: котировки в реальном времени, исторические данные, данные OHLC
  • Поддержка пагинации: Автоматическая пагинация больших наборов данных (владения, ордеры, сделки)
  • Комплексное покрытие: реализует большинство конечных точек API Kite Connect
  • Режимы множественного развертывания: stdio, HTTP, SSE и гибридный режим (продакшн)
  • Встроенная документация: Автоматически подаваемая документация во время выполнения

Быстрый старт

Хостинговая версия (рекомендую)

Самый простой способ начать — с нашей хостинговой версии на 'mcp.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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)

Открыть полный README на GitHub

Установка

npx mcp-remote https://mcp.kite.trade/mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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