Avanza MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Avanza MCPWhat's the current price of Avanza Zero?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Avanza MCP
Independent local Streamable HTTP MCP server for Avanza authentication, account data, instruments, market data, and orders. It uses the unofficial avanza-api package. Order tools can affect real money, so keep MCP approval enabled and use AVANZA_MCP_ALLOWED_ACCOUNT_ID when authenticated.
This is an unofficial community project. It is not affiliated with, endorsed by, or supported by Avanza Bank AB. Avanza does not provide an official public API for this integration, so endpoints may change without notice. You are responsible for complying with Avanza's terms and for every action performed through your account.
Setup and run
uv sync --extra test
Copy-Item .env.example .env
uv run python -c "import secrets; print(secrets.token_urlsafe(32))"
uv run avanza-mcp-httpPaste the generated random value into AVANZA_MCP_BEARER_TOKEN in .env
before starting the server. Tokens shorter than 32 characters and the published
example placeholder are rejected.
The endpoint is http://127.0.0.1:8765/mcp by default. Public market-data tools work without Avanza login credentials; the local MCP bearer token is always required. See docs/tool-matrix.md for risk classifications.
Keep the server bound to localhost. Do not expose it directly to the public internet, reuse the bearer token elsewhere, or commit credentials. Tools that place, edit, or cancel orders can affect real money and should always require interactive MCP approval.
Money-affecting tools are blocked even after login unless both
AVANZA_MCP_ENABLE_LIVE_TRADING=true and
AVANZA_MCP_ALLOWED_ACCOUNT_ID=<account-id> are configured. Keep live trading
disabled for read-only account access. The tools also publish standard MCP
read-only and destructive annotations so compatible clients can apply their
normal approval policies.
Related MCP server: sc-mcp
Environment ownership
This project exclusively owns all AVANZA_* variables shown in .env.example. Never commit .env.
Tests
uv run pytestTests use mocked clients and do not place orders.
Contributing and security
See CONTRIBUTING.md before submitting changes. Report security issues according to SECURITY.md, never in an issue that contains credentials, account data, or bearer tokens.
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityBmaintenanceMCP server for Avanza portfolio monitoring and trading, supporting regular and stop-loss orders, paper trading, and live order placement through an authenticated TUI session.Last updated
- Alicense-qualityAmaintenanceA read-only MCP server that wraps the Scalable Capital CLI to expose broker data (portfolio, holdings, transactions, analytics, quotes, news) to any MCP-capable client.Last updatedMIT
- AlicenseAqualityBmaintenanceMCP server for the Trading 212 public API, enabling account, portfolio, order, pie, and history access with read tools always available and trading tools opt-in.Last updated131MIT
- AlicenseBqualityCmaintenanceA local MCP server for IG's REST Trading API, providing account/history, market data, position, working-order, and trade-confirmation tools with guarded OTC trade actions.Last updated19MIT
Related MCP Connectors
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Advance-xd/avanza-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server