MCP Hub
Back to servers

Sharesight MCP Server

A comprehensive MCP server providing full access to Sharesight's investment portfolio tracking platform. It enables AI assistants to manage holdings, track dividends, generate performance reports, and handle custom investments via the v3 API.

Tools
29
Updated
Jan 20, 2026

Sharesight MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with access to the Sharesight portfolio tracking platform via the v3 API.

Quick Start

Step 1: Get OAuth Credentials

You'll need a Client ID and Client Secret from Sharesight to use this server.

How to get credentials:

Step 2: Run One-Time Authentication

npx github:Haizzz/sharesight-mcp auth

The CLI will:

  1. Prompt for your Client ID and Client Secret
  2. Display a URL to open in your browser
  3. Ask you to log in to Sharesight and authorize the app
  4. Prompt you to paste the authorization code
  5. Save tokens locally (they refresh automatically)

Step 3: Add MCP Server Configuration

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "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 you're ready to go!

Overview

This MCP server enables Claude and other AI assistants to interact with Sharesight accounts, allowing natural language queries and operations on investment portfolios, holdings, custom investments, and performance reports.

What is Sharesight?

Sharesight is a portfolio tracking platform that helps investors track their stocks, ETFs, mutual funds, and other investments across multiple markets. It provides performance reporting, dividend tracking, and tax reporting features.

What is MCP?

The Model Context Protocol is an open standard that enables AI assistants to securely connect to external data sources and tools.

Features

This server exposes 27 tools covering all Sharesight v3 API endpoints:

Portfolio Management

ToolDescription
list_portfoliosList all user portfolios with optional consolidated view
get_portfolioGet detailed portfolio information by ID
list_portfolio_holdingsList all holdings within a specific portfolio
get_portfolio_user_settingGet user display preferences for a portfolio
update_portfolio_user_settingUpdate chart type, grouping, and other display settings

Holdings Management

ToolDescription
list_holdingsList all holdings across all portfolios
get_holdingGet holding details with optional cost base and historical values
update_holdingUpdate holding settings (DRP configuration)
delete_holdingRemove a holding from a portfolio

Custom Investments

ToolDescription
list_custom_investmentsList custom/unlisted investments
get_custom_investmentGet custom investment details
create_custom_investmentCreate a new custom investment (property, bonds, etc.)
update_custom_investmentUpdate custom investment properties
delete_custom_investmentRemove a custom investment

Custom Investment Prices

ToolDescription
list_custom_investment_pricesGet price history for a custom investment
create_custom_investment_priceAdd a new price entry
update_custom_investment_priceModify an existing price entry
delete_custom_investment_priceRemove a price entry

Coupon Rates (Fixed Interest)

ToolDescription
list_coupon_ratesList interest rates for fixed interest investments
create_coupon_rateAdd a new coupon rate
update_coupon_rateModify a coupon rate
delete_coupon_rateRemove a coupon rate

Performance Reports

ToolDescription
get_performance_reportDetailed performance breakdown with gains analysis
get_performance_index_chartChart data for visualizing portfolio performance

Other

ToolDescription
list_countriesGet Sharesight-supported countries and their settings
show_coupon_codeView applied promotional coupon code
apply_coupon_codeApply a promotional coupon code
delete_coupon_codeRemove applied coupon code
revoke_api_accessDisconnect API access (invalidates all tokens)

Install from Source

git clone https://github.com/Haizzz/sharesight-mcp.git
cd sharesight-mcp
npm install
npm run build

Then run auth and configure:

node dist/index.js auth
{
  "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"
      }
    }
  }
}

Token Storage

OAuth tokens are stored at:

  • Linux/macOS: ~/.sharesight-mcp/tokens.json
  • Windows: %USERPROFILE%\.sharesight-mcp\tokens.json

Tokens refresh automatically. To re-authorize, delete the tokens file and run sharesight-mcp auth again.

Error Handling

Common errors:

  • 401 - Invalid or expired access token
  • 403 - Token revoked or insufficient permissions
  • 404 - Resource not found
  • 422 - Validation error (check field values)

Development

npm run dev     # Watch mode
npm run build   # Build for production
npm start       # Run the server

License

MIT

Support

Reviews

No reviews yet

Sign in to write a review