Supports storing API keys in .env files for secure configuration management, enabling access to external data services without hardcoding credentials.
Enables source code retrieval through git clone commands for initial setup.
Hosts the repository for the MCP server, allowing users to clone and access the codebase through git.
Supports Linux environments with specific instructions for setup and virtual environment activation.
Provides specific instructions for running in macOS environments, including virtual environment activation commands.
Built on Python, supporting various execution environments including virtual environments for dependency management.
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
Installation
- Clone this repository:
- Install the required dependencies:
- Set up API keys (optional):Alternatively, create a
.env
file 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):
- SSE Transport (for HTTP-based clients):
Integration with Claude Desktop
Add the server to your Claude Desktop configuration file:
If you choose to run your server in a virtual environment, then your configuration file will look like:
To run it in a virtual environment:
Or use the MCP CLI for easier installation:
Example 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
Future 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
License
MIT
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables users to create, manage, and analyze investment portfolios with real-time market data, personalized recommendations, and visual representations of asset allocation.
Related MCP Servers
- AsecurityAlicenseAqualityEnables interaction with the PolyMarket API to fetch prediction market data such as market information, prices, and historical data, with robust error handling and rate limit management.Last updated -431PythonMIT License
mcp-octagonofficial
AsecurityAlicenseAqualityDeliver real-time investment research with extensive private and public market data.Last updated -1184755JavaScriptMIT License- AsecurityAlicenseAqualityA server that provides tools for retrieving real-time price information for various assets including precious metals and cryptocurrencies, allowing language models to access and display current asset price data.Last updated -12612JavaScriptMIT License
- AsecurityFlicenseAqualityProvides tools to get financial data (stock prices, company information) and generate financial visualizations through the Model Context Protocol.Last updated -104Python