home / mcp / sharesight mcp server
Provides access to Sharesight v3 API data and actions for portfolios, holdings, custom investments, and performance reports.
Configuration
View docs{
"mcpServers": {
"haizzz-sharesight-mcp": {
"command": "npx",
"args": [
"-y",
"github:Haizzz/sharesight-mcp",
"serve"
],
"env": {
"SHARESIGHT_CLIENT_ID": "your_client_id",
"SHARESIGHT_CLIENT_SECRET": "your_client_secret"
}
}
}
}You can connect Claude and other AI assistants to Sharesight data by running the Sharesight MCP Server. It exposes a stable set of tools that let you query and manage your Sharesight portfolios, holdings, custom investments, and performance data through natural language interactions.
To use the Sharesight MCP Server with your MCP client, first authenticate to obtain the required tokens, then enable the server in your client configuration and start the server. Once it is running, you can ask your AI assistant to list portfolios, view holdings, fetch performance reports, or manage custom investments. The server securely handles access tokens and refreshes them automatically, so you can focus on natural language queries without worrying about token expiry.
Prerequisites: have Node.js and npm installed on your machine.
Option A: Quick start with the CLI (one-time authentication)
npx github:Haizzz/sharesight-mcp authThe CLI will prompt you for your Client ID and Client Secret, provide a browser URL to authorize the app, ask you to log in, and finally paste the authorization code. Tokens are stored locally and refresh automatically.
Option B: Add MCP server configuration to your Claude Desktop client
{
"mcpServers": {
"sharesight": {
"command": "npx",
"args": ["-y", "github:Haizzz/sharesight-mcp", "serve"],
"env": {
"SHARESIGHT_CLIENT_ID": "your_client_id",
"SHARESIGHT_CLIENT_SECRET": "your_client_secret"
}
}
}
}Restart Claude Desktop and the Sharesight MCP Server becomes available as a tool source in your assistant.
Option C: Run from source (build and start locally)
git clone https://github.com/Haizzz/sharesight-mcp.git
cd sharesight-mcp
npm install
npm run build
```
Then start the server with authentication and run-time serving using the built artifact:node dist/index.js auth
```
```json
{
"mcpServers": {
"sharesight": {
"command": "node",
"args": ["/path/to/sharesight-mcp/dist/index.js", "serve"],
"env": {
"SHARESIGHT_CLIENT_ID": "your_client_id",
"SHARESIGHT_CLIENT_SECRET": "your_client_secret"
}
}
}
}Once configured, restart the client to enable the Sharesight MCP Server. You can now use your AI assistant to interact with Sharesight data.
Token storage and re-authorization details vary by platform. Tokens are stored locally for refresh automation. If you need to re-authorize, remove the tokens file and run the authentication flow again.
Common operations include listing portfolios, getting detailed portfolio information, listing and updating holdings, managing custom investments and their prices, and generating performance reports.
Keep your Client ID and Client Secret secure. Do not expose tokens in client-side logs. If you encounter token or permission errors, re-authenticate and ensure your Sharesight API access is active for the associated account.
Error codes to know: 401 invalid or expired token, 403 token revoked or insufficient permissions, 404 resource not found, 422 validation error.
List all user portfolios with optional consolidated view
Get detailed portfolio information by ID
List all holdings within a specific portfolio
Get user display preferences for a portfolio
Update chart type, grouping, and other display settings
List all holdings across all portfolios
Get holding details with optional cost base and historical values
Update holding settings (DRP configuration)
Remove a holding from a portfolio
List custom/unlisted investments
Get custom investment details
Create a new custom investment (property, bonds, etc.)
Update custom investment properties
Remove a custom investment
Get price history for a custom investment
Add a new price entry
Modify an existing price entry
Remove a price entry
List interest rates for fixed interest investments
Add a new coupon rate
Modify a coupon rate
Remove a coupon rate
Detailed performance breakdown with gains analysis
Chart data for visualizing portfolio performance
Get Sharesight-supported countries and their settings
View applied promotional coupon code
Apply a promotional coupon code
Remove applied coupon code
Disconnect API access (invalidates all tokens)