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?"
関連サーバー
photographi
A local computer vision engine that lets AI agents understand the technical metrics of photographs
writefreely-mcp-server
MCP server that enables AI agents to publish and manage content on Write.as and self-hosted WriteFreely instances.
FAKTURMAT MCP
MCP-enabled invoicing platform for invoice creation, PDF export, and billing operations.
MCP Educational Tutor
An intelligent tutoring server that uses GitHub documentation repositories to provide structured educational prompts and tools.
Notion
Search, read, create, and update pages and databases in your Notion workspace.
Google Calendar MCP
Integrates with the Google Calendar API to manage events and schedules using OAuth2 authentication.
Jira MCP Server by CData
A read-only MCP server for Jira, enabling LLMs to query live Jira data using the CData JDBC Driver.
SSE Calculator
A stateful calculator server using Server-Sent Events (SSE) for real-time communication.
EndNote Library Connector
Search, cite, and read PDFs from your EndNote reference library directly in Claude Desktop
Desktop Automation
Automate desktop actions and interact with your local environment using LLM applications.