shoonya-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shoonya-mcpBuy NIFTY 24500 CE 30"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Shoonya MCP Server (Node.js)
A lightweight, bank-level secure Model Context Protocol (MCP) server for algorithmic trading via the Shoonya Broker API.
This package is designed for effortless and secure distribution. It runs natively over stdio, meaning it can be plugged directly into AI assistants like Claude Desktop, Cursor, or Gemini without requiring a Python environment.
🔐 Security Architecture
Your trading credentials are protected using military-grade encryption. The AI assistant never sees, stores, or transmits your passwords.
How It Works
┌─────────────────────────────────────────────────────────┐
│ YOUR LOCAL MACHINE │
│ │
│ ┌──────────────┐ Master ┌──────────────────┐ │
│ │ AI (Claude, │ Password │ Shoonya MCP │ │
│ │ Cursor, etc) │ ──────────► │ Server (Node.js)│ │
│ │ │ │ │ │
│ │ Never sees │ │ Decrypts vault │ │
│ │ credentials │ │ locally only │ │
│ └──────────────┘ └────────┬─────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────┐ │
│ │ ~/.shoonya-mcp/ │ │
│ │ vault.enc │ │
│ │ │ │
│ │ AES-256-GCM │ │
│ │ encrypted file │ │
│ └──────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────┐ │
│ │ Shoonya Broker │ │
│ │ API (HTTPS) │ │
│ └──────────────────┘ │
└─────────────────────────────────────────────────────────┘Encryption Details
Feature | Specification |
Encryption Algorithm | AES-256-GCM (used by banks, governments, military) |
Key Derivation | PBKDF2 with SHA-256, 310,000 iterations (OWASP 2023) |
Salt | 32 bytes, cryptographically random, unique per vault |
IV (Nonce) | 16 bytes, cryptographically random, unique per save |
Authentication | GCM auth tag prevents tampering |
File Permissions |
|
Vault Location |
|
AI Exposure | ❌ Credentials never sent to or seen by the AI |
What the AI Can See vs Cannot See
Data | AI Can See? |
Master Password | ✅ Only to decrypt vault (not stored) |
User ID | ❌ Never |
Broker Password | ❌ Never |
TOTP Secret Key | ❌ Never |
API Key | ❌ Never |
Vendor Code | ❌ Never |
IMEI | ❌ Never |
Order commands | ✅ (e.g., "NIFTY 24500 CE 30") |
Order results | ✅ (order ID, margin, status) |
Related MCP server: Kite MCP Server
Quick Start
Step 1: Setup Credentials (One-Time)
Run the interactive setup wizard in your terminal:
npx github:benatcmathew/Shoonya_Trading_MCP-Server --setupThis will:
Ask for your Shoonya broker credentials
Ask you to set a master password
Encrypt everything with AES-256-GCM and save to
~/.shoonya-mcp/vault.enc
Step 2: Connect to Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"shoonya-mcp": {
"command": "npx",
"args": [
"-y",
"github:benatcmathew/Shoonya_Trading_MCP-Server"
]
}
}
}Step 3: Start Trading!
In Claude Desktop, simply say:
"Login to Shoonya" → The AI will ask for your master password only. "Buy NIFTY 24500 CE 30" → Places a market order. "Place auto SL for order 12345 on NIFTY" → Auto stop-loss.
CLI Commands
Command | Description |
| First-time credential setup (interactive wizard) |
| Edit/update stored credentials |
| Securely wipe and delete the vault |
| Check if a vault exists |
| Start the MCP server (default, used by Claude) |
Available MCP Tools
Tool | Parameters | Description |
|
| Decrypt vault & login to Shoonya |
|
| Smart order (e.g., |
|
| Manual SL (e.g., |
|
| Auto SL from filled order |
|
| Modify open order |
|
| Modify SL order |
|
| Cancel any order |
|
| Exit position |
| — | Fetch order book |
| — | Fetch available margin |
|
| Check specific order status |
Manual Build from Source
git clone https://github.com/benatcmathew/Shoonya_Trading_MCP-Server.git
cd Shoonya_Trading_MCP-Server
npm install
npm run build
npm startLicense
ISC
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/benatcmathew/Shoonya_Trading_MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server