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?"
相關伺服器
Kone.vc
贊助Monetize your AI agent with contextual product recommendations
WordPress MCP Server
Manage WordPress sites via the REST API. Enables AI assistants to handle content, posts, and site configurations.
Laravel Boost
Laravel Boost is an MCP server equipped with over 15 specialized tools designed to streamline AI-assisted coding workflows.
hh-jira-mcp-server
A MCP server for interacting with Jira. It requires external configuration via environment variables for credentials and filters.
FORMLOVA
Chat-first form service with 127 MCP tools. Create, manage, and analyze forms through conversation.
Time-mcp
A simple Model Context Protocol (MCP) server that provides the current date and time.
sodukusolver MCP server
A simple note storage system that allows adding and summarizing notes using a custom URI scheme.
Longbridge
US/HK markets — 110 tools: real-time quotes, options, orders, fundamentals, alerts, DCA & portfolio
n8n-mcp
A simple note storage system with tools to add and summarize notes using a custom note:// URI scheme.
PDF Tools
A server for manipulating PDF files, including merging, page extraction, and searching.
GroundEffect
Hyper-fast, local Gmail and Google Calendar indexing for Claude Code, available as a Skill or MCP Server.