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.
README
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
| Tool | Description |
|---|---|
search_instruments |
Find stocks, funds, ETFs by name or symbol |
get_instrument_by_order_book_id |
Look up instruments by order book ID |
Stock Analysis
| Tool | Description |
|---|---|
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 |
Fund Analysis
| Tool | Description |
|---|---|
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) |
💡 MCP Prompts
analyze_stock- Comprehensive stock analysis workflowcompare_funds- Multi-fund comparison templatescreen_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=allowflag 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.