mishgancheg/mcp-finam-trade-api
If you are the rightful owner of mcp-finam-trade-api and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
FINAM Trade API MCP Server provides over 30 trading tools for Claude AI and other MCP clients, facilitating seamless integration and trading operations.
FINAM Trade API MCP Server
Выполнено в рамках хакатона `Finam AI Trade Hack`. 04.10.2025MCP server providing 30+ trading tools for Claude AI and other MCP clients.
🚀 Quick Start
For Users
Add to claude_desktop_config.json:
{
"mcpServers": {
"finam": {
"command": "npx",
"args": ["-y", "mcp-finam-trade-api"],
"env": {
"API_SECRET_TOKEN": "your_token",
"ACCOUNT_ID": "your_account_id",
"RETURN_AS": "string"
}
}
}
}
Get Credentials:
- API_SECRET_TOKEN: https://tradeapi.finam.ru/docs/tokens/ → Generate token
- ACCOUNT_ID: Personal account → Copy ID (digits only, without КЛФ-)
Restart Claude Desktop - done!
For Developers
git clone https://github.com/mishgancheg/mcp-finam-trade-api.git
cd mcp-finam-trade-api
npm install
npm run build
# Create .env
RETURN_AS=json
# Run
npm run mcp # STDIO
npm run mcp:http # HTTP server
🔌 Connection Methods
1. Local STDIO (via npx)
{
"mcpServers": {
"finam": {
"command": "npx",
"args": ["-y", "mcp-finam-trade-api"],
"env": {
"API_SECRET_TOKEN": "token",
"ACCOUNT_ID": "123456"
}
}
}
}
2. Remote Server (via mcp-remote)
{
"mcpServers": {
"finam": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://your-server.com/sse",
"--header", "Authorization:${FINAM_AUTH}",
"--header", "X-Finam-Account-Id:${FINAM_ID}"
],
"env": {
"FINAM_AUTH": "Bearer <secret_token>",
"FINAM_ID": "<account_id>"
}
}
}
}
⚠️ No spaces around : (Windows Claude Desktop bug)
3. Local Node (development)
{
"mcpServers": {
"finam": {
"command": "node",
"args": ["/path/to/dist/src/mcp/index.js"],
"env": {
"API_SECRET_TOKEN": "<secret_token>",
"ACCOUNT_ID": "<account_id>"
}
}
}
}
Config Location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Or: Settings → Developer → Edit Config
🛠️ Available Tools (19 total)
Connection (2)
Auth- Get JWT tokenTokenDetails- Token permissions
Accounts (3)
GetAccount- Account infoTrades- Account tradesTransactions- Transactions history
Instruments (5)
Assets- List assetsClock- Server timeGetAssetDetails- Trading parametersOptionsChain- Options dataSchedule- Trading schedule
Orders (4)
PlaceOrder- Create orderGetOrder- Order detailsGetOrders- List ordersCancelOrder- Cancel order
Market Data (4)
Bars- Historical candlesLastQuote- Current quoteLatestTrades- Recent tradesOrderBook- Order book depth
Search (1)
SearchInstruments- Exact instrument lookup by symbol, isin, or ticker
📚 Available Resources
Enums (13)
enum://OrderType- Order typesenum://TimeInForce- Time in force valuesenum://OrderStatus- Order statusesenum://StopCondition- Stop conditionsenum://QuoteLevel- Quote levelsenum://AccountType- Account typesenum://AccountStatus- Account statusesenum://AssetType- Asset typesenum://OptionType- Option typesenum://SessionType- Session typesenum://TimeFrame- Timeframesenum://TransactionCategory- Transaction categoriesenum://OrderBookAction- Order book actions
Schemas (2)
schema://asset- Complete asset/instrument field descriptionsschema://order- Complete order information field descriptions
Data (1)
exchange://list- List of exchanges with mic codes (cached, updates every 2 hours)
💬 Available Prompts
trading-agent
Introduces Claude as a trading agent for brokerage account operations.
Parameters:
account_id(optional if default is configured) - Account ID to work with
Usage: Provides context for Claude to act as a trading assistant, helping with account operations, order management, and market analysis.