https://github.com/alokamgnaneswarasai/nuvama-mcp
MCP server to connect to nuvama-trade apis
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.0%) to scientific vocabulary
Repository
MCP server to connect to nuvama-trade apis
Basic Info
- Host: GitHub
- Owner: alokamgnaneswarasai
- Language: Python
- Default Branch: master
- Size: 13.7 KB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
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.
- trademcpserver.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 🛠️
- Clone the repository to your local machine.
- Install the required Python packages:
bash pip install -r requirements.txt 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.
Run the FastMCP server:
bash 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:
json
{
"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! 🚀
Owner
- Login: alokamgnaneswarasai
- Kind: user
- Repositories: 1
- Profile: https://github.com/alokamgnaneswarasai
GitHub Events
Total
- Watch event: 4
- Push event: 2
- Create event: 2
Last Year
- Watch event: 4
- Push event: 2
- Create event: 2
Dependencies
- httpx >=0.28.1
- mcp [cli]>=1.6.0
- annotated-types 0.7.0
- anyio 4.9.0
- certifi 2025.1.31
- click 8.1.8
- colorama 0.4.6
- h11 0.14.0
- httpcore 1.0.8
- httpx 0.28.1
- httpx-sse 0.4.0
- idna 3.10
- markdown-it-py 3.0.0
- mcp 1.6.0
- mdurl 0.1.2
- pydantic 2.11.3
- pydantic-core 2.33.1
- pydantic-settings 2.9.1
- pygments 2.19.1
- python-dotenv 1.1.0
- rich 14.0.0
- shellingham 1.5.4
- sniffio 1.3.1
- sse-starlette 2.2.1
- starlette 0.46.2
- trade 0.1.0
- typer 0.15.2
- typing-extensions 4.13.2
- typing-inspection 0.4.0
- uvicorn 0.34.2