mcpField
K
Kite Spring MCP Server

Kite Spring MCP Server

Local
github.com/KartikhubFinance0Updated 74w ago

About Kite Spring MCP Server

Kite Spring MCP Server is a Spring Boot server that connects AI agents to Zerodha's Kite trading API. This proof of concept supports OAuth login and access to portfolio holdings through two MCP tools.

Key features

  1. 01OAuth authentication with Zerodha Kite
  2. 02Session management
  3. 03Retrieve portfolio holdings

Use cases

  1. 01Authenticate a user with Zerodha Kite
  2. 02Check portfolio holdings through an AI agent

MCP support

Exposes `login` and `get_holdings` as MCP tools. It communicates with MCP clients over Server-Sent Events (SSE).

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Kite Spring MCP Server

A Java implementation of Zerodha's Kite API as a Model Context Protocol (MCP) server built with Spring Boot. Inspired by the official Kite MCP server project.

Overview

This project implements a Spring-based Model Context Protocol (MCP) server that provides tools for interacting with Zerodha's Kite trading platform. MCP is a protocol that enables AI agents to interact with external tools and services in a standardized way, extending their capabilities beyond language generation.

The server provides a communication bridge between AI agents and the Kite trading platform, allowing agents to authenticate users and access their trading information through defined tools.

Features

  • OAuth-based authentication with Zerodha Kite
  • Session management for maintaining user context
  • MCP tools for interacting with Kite API

Tools Implemented

This proof-of-concept implementation provides the following tools:

  1. login - Authenticates with Zerodha Kite via OAuth, providing a login URL for users.
  2. get_holdings - Retrieves the user's portfolio holdings after authentication.

Technology Stack

Running the Server

Prerequisites
  • Java 21 or higher
  • Maven
  • Zerodha Kite API credentials
Environment Variables

The following environment variables need to be set:

KITE_API_KEY=your_kite_api_key
KITE_API_SECRET=your_kite_api_secret
Build and Run
mvn clean package
java -jar target/kite-spring-mcp-1.0-SNAPSHOT.jar

The server will start on port 8080 by default.

Configuring with AI Agents

This project supports Server-Sent Events (SSE) for communicating with AI agents that implement the MCP protocol.

Using with VS Code

To use this MCP server with VS Code, add the following configuration:

Global settings.json
"mcp": {
    "servers": {
        "kite_java": {
            "type": "sse",
            "url": "http://localhost:8080/mcp/sse"
        }
    }
},
Workspace mcp.json

Alternatively, you can add the configuration at the workspace level:

"servers": {
    "kite_java": {
        "type": "sse",
        "url": "http://localhost:8080/mcp/sse"
    }
}

Extending the Server

This implementation is designed to be easily extended with additional Kite API tools by:

  1. Creating new tool classes in the io.github.kartikhub.tool package
  2. Using the @Tool annotation to expose methods as MCP tools
  3. Registering them in the ToolConfig class

License

This project is released under the MIT License. See the LICENSE file for details.

This implementation is inspired by the official Kite MCP server by Zerodha Tech, also available under the MIT License. Attribution information is included in the THIRD_PARTY_LICENSES file.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.