Portfolio API for AI Agents
Turn your AI coding agent (Claude Code, Cursor, Windsurf, Codeium) into a portfolio data expert. MCP server with 17 live API tools, Code Mode sandbox, and 14 ready-to-use templates.
Looking for REST API docs? Visit our Developers page
MCP Server for AI Coding Agents
The official cas-parser-node-mcp package turns your AI coding agent into a portfolio data expert. 17 live API tools auto-generated from our OpenAPI spec. Claude, Cursor, Windsurf, and Codeium can parse CAS PDFs, fetch CDSL holdings, import from Gmail, and more.
What Your AI Agent Gets
Claude Code (Recommended)
1 commandclaude mcp add cas_parser_node_mcp \
-e CAS_PARSER_API_KEY=your-api-key \
-- npx -y cas-parser-node-mcp@latest Use sandbox-with-json-responses for testing without an API key.
Cursor / Windsurf / Codeium
mcp.json{
"mcpServers": {
"cas_parser_node_mcp": {
"command": "npx",
"args": ["-y", "cas-parser-node-mcp@latest"],
"env": { "CAS_PARSER_API_KEY": "your-key" }
}
}
} Add to your IDE's MCP settings. Agent gets all 17 tools instantly.
Live API Tools
Parse, fetch, generate, import
Code Templates
Python, Node.js, React, HTML
API Response Time
Fast enough for real-time UX
Agents Can Sign Up Too
Your agent can obtain an API key without you leaving the terminal. No copy-paste needed.
Agent generates a one-time URL
No API call needed — the token is created locally
You open the URL and approve
Sign in on any device — phone, laptop, anywhere
Agent gets the key automatically
Polls a single endpoint, writes to .env, done
# Agent generates a token and asks you to open a URL
TOKEN=$(openssl rand -hex 32)
echo "Open https://app.casparser.in/agent-auth?token=${TOKEN}"
# Agent polls until you approve
curl -s https://api.casparser.in/v1/agent-auth/token/${TOKEN}
# → {"status": "approved", "api_key": "sk_...", "email": "..."} Works with any agent that can run shell commands. No SDK or CLI required.
Agent Toolkit
Ready-to-use templates and skills for AI coding agents. Install with one command.
Install
npx skills add casparser/agent-toolkit What's Included
Get Started with AI Agent Integration
Install the MCP server, let your agent sign up for an API key, and start building.
Not using AI agents? Visit our Developers page for REST API & SDK documentation.