npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-finam-trade-api

v1.0.32

Published

Model Context Protocol (MCP) server for FINAM Trade API - provides trading tools for Claude AI and other MCP clients

Readme

FINAM Trade API MCP Server


Тестер для размещения результатов на leaderboard


MCP 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:

  1. API_SECRET_TOKEN: https://tradeapi.finam.ru/docs/tokens/ → Generate token
  2. 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

Connection (2)

  • Auth - Get JWT token
  • TokenDetails - Token permissions

Accounts (3)

  • GetAccount - Account info
  • Trades - Account trades
  • Transactions - Transactions history

Instruments (5)

  • Assets - List assets
  • Clock - Server time
  • GetAssetDetails - Trading parameters
  • OptionsChain - Options data
  • Schedule - Trading schedule

Orders (4)

  • PlaceOrder - Create order
  • GetOrder - Order details
  • GetOrders - List orders
  • CancelOrder - Cancel order

Market Data (4)

  • Bars - Historical candles
  • LastQuote - Current quote
  • LatestTrades - Recent trades
  • OrderBook - Order book depth

📚 Available Resources

Enums (13)

  • enum://OrderType - Order types
  • enum://TimeInForce - Time in force values
  • enum://OrderStatus - Order statuses
  • enum://StopCondition - Stop conditions
  • enum://QuoteLevel - Quote levels
  • enum://AccountType - Account types
  • enum://AccountStatus - Account statuses
  • enum://AssetType - Asset types
  • enum://OptionType - Option types
  • enum://SessionType - Session types
  • enum://TimeFrame - Timeframes
  • enum://TransactionCategory - Transaction categories
  • enum://OrderBookAction - Order book actions

Data (1)

  • exchange://list - List of exchanges with mic codes (cached, updates every 2 hours)

🔗 Links

⚠️ Disclaimer