MCP Hub
Back to servers

Avanza MCP Server

Provides access to Avanza's public API for real-time Swedish stock quotes, fund information, and comprehensive market data. It enables users to perform detailed stock analysis, compare funds, and retrieve portfolio holdings through natural language.

Stars
5
Forks
1
Updated
Feb 4, 2026
Validated
Feb 6, 2026

Avanza MCP Server

A Model Context Protocol (MCP) server providing access to Avanza's public API. Get real-time Swedish stock quotes, fund information, charts, and comprehensive market data.

⚠️ Disclaimer

This is an unofficial API client/MCP Server. Not affiliated with Avanza Bank AB. The underlying API can be taken down or changed without warning at any point in time.

The author of this software is not responsible for any indirect damages (foreseeable or unforeseeable), such as, if necessary, loss or alteration of or fraudulent access to data, accidental transmission of viruses or of any other harmful element, loss of profits or opportunities, the cost of replacement goods and services or the attitude and behavior of a third party.

🛠️ MCP Tools

Search & Discovery

ToolDescription
search_instrumentsFind stocks, funds, ETFs by name or symbol
get_instrument_by_order_book_idLook up instruments by order book ID

Stock Analysis

ToolDescription
get_stock_infoComplete stock information with fundamentals
get_stock_quoteReal-time price and volume data
get_stock_analysisFinancial ratios by year and quarter
get_stock_chartHistorical OHLC price data
get_orderbookOrder book depth with bid/ask levels
get_marketplace_infoTrading hours and market status
get_recent_tradesLatest executed trades
get_broker_trade_summaryBroker buy/sell activity
get_dividendsHistorical dividend data
get_company_financialsAnnual and quarterly financial statements

Fund Analysis

ToolDescription
get_fund_infoComplete fund information with performance
get_fund_sustainabilityESG scores and sustainability metrics
get_fund_chartHistorical performance charts
get_fund_chart_periodsPerformance across all time periods
get_fund_descriptionDetailed fund description
get_fund_holdingsPortfolio allocation (country, sector, top holdings)

💡 MCP Prompts

  • analyze_stock - Comprehensive stock analysis workflow
  • compare_funds - Multi-fund comparison template
  • screen_dividend_stocks - Dividend stock screening

Configuration for MCP Clients

For Claude Desktop or other MCP clients, add to your configuration:

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

Note: The --prerelease=allow flag is required because this package depends on fastmcp 3.0 (currently in beta). This will no longer be needed once fastmcp 3.0 stable is released.

Usage in Claude Desktop

Once configured, you can ask Claude:

  • "Search for Volvo stock on Avanza"
  • "Get the latest stock quote for Ericsson"
  • "Show me sustainable Swedish funds"
  • "What's in the order book for H&M?"
  • "Compare the performance of these three funds"
  • "What dividends has SEB paid over the years?"
  • "Show me the portfolio holdings for Avanza Global fund"

📄 License

MIT License - See LICENSE.md for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Reviews

No reviews yet

Sign in to write a review