The Angle One MCP Server provides financial data and analysis capabilities through a standardized Model Context Protocol interface. It integrates with Angle One's trading APIs to access market data and execute trading operations.
Clone the repository:
git clone https://github.com/baba786/angleone-mcp-server.git
cd angleone-mcp-server
Install dependencies:
pip install -r requirements.txt
Configure your environment:
Create a .env
file in the root directory with your Angle One API credentials:
ANGLEONE_API_KEY=your_api_key
ANGLEONE_CLIENT_ID=your_client_id
ANGLEONE_PASSWORD=your_password
ANGLEONE_TOKEN=your_token
Launch the MCP server with:
python src/main.py
Once started, the server will be accessible at http://localhost:8000
To interact with the server, you can use standard HTTP requests to the MCP endpoints. For example:
# Get market data for a specific symbol
curl http://localhost:8000/market-data?symbol=RELIANCE
# Place a buy order
curl -X POST http://localhost:8000/orders \
-H "Content-Type: application/json" \
-d '{"symbol": "RELIANCE", "quantity": 10, "price": 2500, "type": "BUY"}'
The server behavior can be customized by modifying the configuration settings in your .env
file:
PORT
: Change the default port (8000)LOG_LEVEL
: Set logging verbosity (INFO, DEBUG, ERROR)CACHE_TIMEOUT
: Set market data cache timeout in seconds.env
fileTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "angleone-mcp-server" '{"command":"python","args":["src/main.py"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"angleone-mcp-server": {
"command": "python",
"args": [
"src/main.py"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"angleone-mcp-server": {
"command": "python",
"args": [
"src/main.py"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect