MCP Server for Corpus Tracker - Financial Portfolio Assistant
Project description
Corpus MCP Server
A Model Context Protocol (MCP) server for the Corpus Tracker application. This server allows AI assistants (like Claude) to securely interact with your financial portfolio, enabling them to fetch holdings, analyze net worth, and manage transactions.
Features
- Portfolio Analytics: Fetch net worth, asset allocation, and top holdings.
- Asset Management: List, add, and remove Gold and Stock holdings.
- Finance Tracking: Log income and expenses, view transaction history, and analyze cash flow.
- Secure Authentication: Uses API Key authentication to communicate with your Corpus Tracker backend.
Installation
pip install corpus-mcp
Configuration
The server requires two environment variables to connect to your backend:
API_URL: The URL of your Corpus Tracker backend API (e.g.,http://localhost:8000/api/v1or your production URL).API_KEY: Your personal API Key generated from the Corpus Tracker settings.
Usage
Running Standalone
You can run the server directly:
# Set environment variables
export API_URL="http://localhost:8000/api/v1"
export API_KEY="sk_..."
# Run the server
mcp-server
Using with Claude Desktop
Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"corpus-tracker": {
"command": "uv",
"args": [
"tool",
"run",
"corpus-mcp"
],
"env": {
"API_URL": "http://localhost:8000/api/v1",
"API_KEY": "your_api_key_here"
}
}
}
}
Development
To install dependencies and run locally:
# Install dependencies
pip install .
# Run dev server
mcp-server
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file corpus_mcp-0.1.0.tar.gz.
File metadata
- Download URL: corpus_mcp-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
331d5454c45cef7e295d0e66cae0811c2a005a6112304a58468d7515742820d1
|
|
| MD5 |
059227df9d87608c723f14c391af87d0
|
|
| BLAKE2b-256 |
2f9ed82f1a02b8e9d3b9932a05ab622606c7e682e80187c05ac4e8a6d25a90af
|
File details
Details for the file corpus_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: corpus_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ba898decd3d6f2b289555f8a60ff5a9ea7ce32ddad4cf65f69fbf28b608dddc
|
|
| MD5 |
c851dba0dbd0a8ce096f6768b54b42e9
|
|
| BLAKE2b-256 |
524c6f88812d1162a7dbcb0fd904ff25cf6c699c42a04231652f0e464ff7e876
|