home / mcp / avanza mcp server

Avanza MCP Server

Provides access to Avanza public market data via MCP for real-time quotes, charts, and fund information.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "antewall-avanza-mcp": {
      "command": "uvx",
      "args": [
        "--prerelease=allow",
        "avanza-mcp"
      ]
    }
  }
}

You can access Avanza’s public market data through this MCP server, enabling real-time stock quotes, fund information, charts, and more via your MCP client. It provides a streamlined way to query instruments, stock details, charts, dividends, fund holdings, and other market data directly from your tooling.

How to use

You interact with the Avanza MCP Server through your MCP client by loading the provided MCP configuration. Once configured, you can ask your client to search for instruments, retrieve real-time quotes, view stock fundamentals, analyze financials, and explore fund data. Typical actions include searching for stocks or funds by name or symbol, getting up-to-date quotes, viewing order books, inspecting dividends, and comparing fund performance. Your MCP client will expose these tools as commands you can invoke in natural language prompts.

How to install

Prerequisites and setup vary by your MCP client. The Avanza MCP Server is designed to be run in environments that support standard MCP tooling. Use the provided configuration snippet to register the Avanza MCP server with your client.

{
  "mcpServers": {
    "avanza": {
      "command": "uvx",
      "args": ["--prerelease=allow", "avanza-mcp"]
    }
  }
}

Additional configuration notes

Using this server with Claude Desktop or compatible MCP clients requires adding a simple MCP configuration. The example below shows how to register the Avanza MCP server so your client can start querying instruments, quotes, and fund data.

Additional sections

When using the Avanza MCP Server, you will typically interact with a collection of tools that cover stock and fund data, including searching instruments, retrieving quotes, obtaining charts, and inspecting fund holdings. The server is accessed via an MCP client command that launches the Avanza MCP workflow within your client environment.

Configuration for MCP clients

To register the Avanza MCP Server in your MCP client, add the following configuration snippet to your client’s settings or startup configuration.

{
  "mcpServers": {
    "avanza": {
      "command": "uvx",
      "args": ["--prerelease=allow", "avanza-mcp"]
    }
  }
}

Usage examples you can try with your MCP client

- Ask for the latest stock quote for a named Swedish company.

- Request historical OHLC data for a chart.

- Retrieve fund performance history and holdings.

Available tools

search_instruments

Find stocks, funds, ETFs by name or symbol

get_instrument_by_order_book_id

Look up instruments by order book ID

get_stock_info

Complete stock information with fundamentals

get_stock_quote

Real-time price and volume data

get_stock_analysis

Financial ratios by year and quarter

get_stock_chart

Historical OHLC price data

get_orderbook

Order book depth with bid/ask levels

get_marketplace_info

Trading hours and market status

get_recent_trades

Latest executed trades

get_broker_trade_summary

Broker buy/sell activity

get_dividends

Historical dividend data

get_company_financials

Annual and quarterly financial statements

get_fund_info

Complete fund information with performance

get_fund_sustainability

ESG scores and sustainability metrics

get_fund_chart

Historical performance charts

get_fund_chart_periods

Performance across all time periods

get_fund_description

Detailed fund description

get_fund_holdings

Portfolio allocation (country, sector, top holdings)