Portfolio Manager MCP Server
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., "@Portfolio Manager MCP ServerWhat's the recent performance of my portfolio?"
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.
Portfolio Manager MCP Server
A Model Context Protocol (MCP) server that provides tools and resources for managing and analyzing investment portfolios.
Features
Portfolio Management: Create and update investment portfolios with stocks and bonds
Market Data: Fetch real-time stock price information and relevant news
Analysis: Generate comprehensive portfolio reports and performance analysis
Recommendations: Get personalized investment recommendations based on portfolio composition
Visualization: Create visual representations of portfolio allocation
Related MCP server: MCP Yahoo Finance
Installation
Clone this repository:
git clone https://github.com/ikhyunAn/portfolio-manager-mcp.git cd portfolio-manager-mcpInstall the required dependencies:
pip install -r requirements.txtSet up API keys (optional):
export ALPHA_VANTAGE_API_KEY="your_key_here" export NEWS_API_KEY="your_key_here"Alternatively, create a
.envfile in the root of the directory and store the API keys
Usage
Running the Server
You can run the server in two different modes:
Stdio Transport (default, for Claude Desktop integration):
python main.py # alternate commands: i.e.) python3, python3.11SSE Transport (for HTTP-based clients):
python main.py --sse
Integration with Claude Desktop
Add the server to your Claude Desktop configuration file:
{
"mcpServers": {
"portfolio-manager": {
"command": "python", // may use different command
"args": ["/path/to/portfolio-manager-mcp/main.py"],
"env": {
"ALPHA_VANTAGE_API_KEY": "your_key_here",
"NEWS_API_KEY": "your_key_here"
}
}
}
}If you choose to run your server in a virtual environment, then your configuration file will look like:
{
"mcpServers": {
"portfolio-manager": {
"command": "/path/to/portfolio-manager-mcp/venv/bin/python",
"args": ["/path/to/portfolio-manager-mcp/main.py"],
"env": {
"PYTHONPATH": "/path/to/portfolio-manager-mcp",
"ALPHA_VANTAGE_API_KEY": "your_key_here",
"NEWS_API_KEY": "your_key_here"
}
}
}
}To run it in a virtual environment:
# Create a virtual environment
python3 -m venv venv
# Activate the virtual environment
source venv/bin/activate # On macOS/Linux
# or
# venv\Scripts\activate # On Windows
# Install dependencies
pip install -r requirements.txt
# Run the server
python3 main.pyOr use the MCP CLI for easier installation:
mcp install main.pyExample Queries
Once the server is running and connected to Claude, you can interact with it using natural language:
"Create a portfolio with 30% AAPL, 20% MSFT, 15% AMZN, and 35% US Treasury bonds with user Id "
"What's the recent performance of my portfolio?"
"Show me news about the stocks in my portfolio"
"Generate investment recommendations for my current portfolio"
"Visualize my current asset allocation"
Project Structure
portfolio-manager/
├── main.py # Entry point
├── portfolio_server/ # Main package
│ ├── api/ # External API clients
│ │ ├── alpha_vantage.py # Stock market data API
│ │ └── news_api.py # News API
│ ├── data/ # Data management
│ │ ├── portfolio.py # Portfolio models
│ │ └── storage.py # Data persistence
│ ├── resources/ # MCP resources
│ │ └── portfolio_resources.py # Portfolio resource definitions
│ ├── tools/ # MCP tools
│ │ ├── analysis_tools.py # Portfolio analysis
│ │ ├── portfolio_tools.py # Portfolio management
│ │ ├── stock_tools.py # Stock data and news
│ │ └── visualization_tools.py # Visualization tools
│ └── server.py # MCP server setup
└── requirements.txt # DependenciesFuture Work
As of now, the MCP program uses manually created JSON file which keeps track of each user's investment portfolio.
This should be fixed so that it reads in the portfolio data from actual banking applications.
Tasks
Extract JSON from a Finance or Banking Application which the user uses
Enable modifying the investment portfolio by the client
Implement automated portfolio rebalancing
Add support for cryptocurrency assets
Develop mobile application integration
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
- AlicenseAqualityDmaintenanceA Model Context Protocol server that interfaces with Alpaca trading API, allowing users to manage portfolios, place trades, and access market data through natural language interactions.Last updated836MIT
- AlicenseBqualityBmaintenanceA Model Context Protocol server that enables interaction with Yahoo Finance to retrieve stock pricing, company information, and historical financial data through natural language queries.Last updated1027MIT
- Flicense-qualityBmaintenanceA custom Model Context Protocol server that provides real-time financial analysis tools including stock monitoring, portfolio management, market summaries, and automated price alerts with Telegram notifications.Last updated1
- Flicense-qualityDmaintenanceA Model Context Protocol server that provides financial tools for retrieving real-time stock data, analyst recommendations, financial statements, and web search capabilities for a LangGraph-powered ReAct agent.Last updated1
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
7-factor stock scoring MCP server. US/HK/CN, 74 stocks. Free + Premium (USDC/Base). x402 ready.
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/raiyanz04/LLM-Due-Diligence-Assistant'
If you have feedback or need assistance with the MCP directory API, please join our Discord server