Portfolio Tracker
Exposes portfolio tracking tools for AI clients.
Portfolio Tracker MCP Server
A Model Context Protocol (MCP) server that exposes portfolio tracking tools for AI clients.
Features
- Get Portfolio Positions: Retrieve all current positions
- Get Portfolio P&L: Calculate profit/loss with optional price refresh
- Refresh Portfolio Data: Force refresh of all price data from Yahoo Finance
- Get Position Details: Get specific position information
Setup
- Install dependencies:
npm install
- Build the project:
npm run build
- Start the server:
npm start
Development
For development with auto-reload:
npm run dev
MCP Client Configuration
Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"portfolio-tracker": {
"command": "node",
"args": ["/Users/goul/Development/portfolio-tracker-mcp-server/build/index.js"],
"env": {
"PORTFOLIO_API_URL": "http://localhost:3000"
}
}
}
}
Environment Variables
PORTFOLIO_API_URL: Base URL for the portfolio tracker API (default: http://localhost:3000)DEBUG: Set to "true" for verbose logging
Available Tools
-
get_portfolio_positions
- Get all current portfolio positions
- No parameters required
-
get_portfolio_pnl
- Get profit/loss analysis
- Parameters:
refresh(boolean, optional) - force refresh prices
-
refresh_portfolio_data
- Force refresh all price data
- No parameters required
-
get_position_details
- Get details for specific positions
- Parameters:
tickers(string array) - specific tickers to query
Usage Examples
Once connected to an AI client, you can ask:
- "What's my current portfolio performance?"
- "Show me my positions"
- "Refresh my portfolio data and show the P&L"
- "How is my NVDA position performing?"
相关服务器
Rebrandly MCP Tool (Go)
Generate short URLs using the Rebrandly API.
MCP Orchestrator
A universal interface to manage and interact with all your MCP servers from a single point, using external configuration files for mappings and credentials.
Brand24
Social listening and brand monitoring
Miro
Access the Miro REST API v2 for managing boards, creating content, and collaborating.
Context Savvy MCP
Transforms Claude Desktop into a memory-enabled AI assistant with persistent context, secure command execution, and intelligent workflow automation.
Jira MCP Server
An MCP server for interacting with the Jira API to manage projects, issues, and workflows.
Quire
This server allows AI assistants to interact with your Quire projects, tasks, and data securely.
Beancount MCP
Execute Beancount queries and submit transactions to a ledger.
Reepl MCP
Create, schedule, and publish LinkedIn posts directly from Claude Desktop or ChatGPT through natural conversations
MCP Useful Assistant
A powerful MCP-based assistant with tools for file operations, web intelligence, system monitoring, data processing, and code analysis.