Sponsored by Deepsite.site

Nuvama-MCP 🛠️

Created By
alokamgnaneswarasai9 months ago
MCP server to connect to nuvama-trade apis
Content

Nuvama-MCP 🛠️

This project integrates Nuvama's trading platform with Claude AI using the MCP framework, allows you to interact with nuvama trading platform directly through claude AI.

Features ✨

  • 📈 Place buy and sell orders for stocks.
  • 📊 Fetch and display holdings from the API.
  • ⚡ FastMCP server integration for easy tool access.

Project Structure 📂

  • index.py: Contains the core logic for interacting with the trading API.
  • trade_mcp_server.py: Implements a FastMCP server to expose trading functionalities as tools.
  • .gitignore: Specifies files and directories to be ignored by Git.

Prerequisites ✅

  • 🐍 Python 3.x installed on your system.
  • 📦 Required Python packages installed (e.g., FastMCP, APIConnect).
  • 🔑 API credentials (API key, secret, and request ID).
  • 📄 A CSV file containing stock symbols and exchange details.

Setup Instructions 🛠️

  1. Clone the repository to your local machine.

  2. Install the required Python packages:

    pip install -r requirements.txt
    
  3. Update the following placeholders in index.py:

    • api_key: Your API key.
    • api_secret: Your API secret.
    • request_id: Your request ID.
    • settings_file: Path to your settings file.
    • csv_file_path: Path to your instruments CSV file.
  4. Run the FastMCP server:

    uv run trade_mcp_server.py
    

Using the MCP Tools 🛠️

The FastMCP server exposes the following tools:

  • 🛒 buyorder: Place a buy order.
  • 🛍️ sellorder: Place a sell order.

You can call these tools directly from the MCP interface.

Configuring Claude for MCP Integration 🤖

To enable Claude to recognize the MCP tools, create a configuration file (e.g., claude_config.json) in the appropriate directory and add the following content:

{
    "mcpServers": {
        "trade": {
            "command": "<path_to_uv_executable>",
            "args": [
                "--directory",
                "<path_to_trade_directory>",
                "run",
                "trade_server.py"
            ]
        }
    }
}

Replace <path_to_uv_executable> with the path to your uv.exe file and <path_to_trade_directory> with the path to your project directory. Place this configuration file in the relevant location for Claude to detect it.

This configuration allows Claude to interact with the MCP tools, enabling you to place orders directly from Claude using Natural Language.

Happy Trading! 🚀

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Playwright McpPlaywright MCP server
WindsurfThe new purpose-built IDE to harness magic
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server