# Claude Desktop MCP Configuration
Add this configuration to your Claude Desktop config file to enable the portfolio tracker MCP server.
## Configuration File Location
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`
## Configuration
```json
{
"mcpServers": {
"portfolio-tracker": {
"command": "node",
"args": ["/Users/goul/Development/portfolio-tracker-mcp-server/build/index.js"],
"env": {
"PORTFOLIO_API_URL": "http://localhost:3000",
"DEBUG": "false"
}
}
}
}
```
## Important Notes
1. **Update the path**: Change `/Users/goul/Development/portfolio-tracker-mcp-server/build/index.js` to the actual absolute path on your system.
2. **Portfolio tracker must be running**: The portfolio tracker Next.js app must be running on port 3000 before starting Claude Desktop.
3. **Build the MCP server**: Run `npm run build` in the MCP server directory before using it with Claude.
## Testing
Before configuring Claude Desktop, you can test the connection:
```bash
cd /Users/goul/Development/portfolio-tracker-mcp-server
npm run build
npm run test
```
## Usage in Claude
Once configured, you can ask Claude things like:
- "What's my current portfolio performance?"
- "Show me my positions"
- "Refresh my portfolio data and show the updated P&L"
- "How is my NVDA position doing?"
Claude will use the MCP tools to fetch real-time data from your portfolio tracker!