Sharesight MCP Server
Connects AI assistants to the Sharesight portfolio tracking platform via the v3 API for managing investment portfolios and holdings. It enables natural language queries for performance reporting, dividend tracking, and custom investment management.
README
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:
- Contact Sharesight support at support@sharesight.com to request API access
- Visit the Sharesight API documentation for more information
- API access may require a specific Sharesight plan
Step 2: Run One-Time Authentication
npx github:Haizzz/sharesight-mcp auth
The CLI will:
- Prompt for your Client ID and Client Secret
- Display a URL to open in your browser
- Ask you to log in to Sharesight and authorize the app
- Prompt you to paste the authorization code
- 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
| Tool | Description |
|---|---|
list_portfolios |
List all user portfolios with optional consolidated view |
get_portfolio |
Get detailed portfolio information by ID |
list_portfolio_holdings |
List all holdings within a specific portfolio |
get_portfolio_user_setting |
Get user display preferences for a portfolio |
update_portfolio_user_setting |
Update chart type, grouping, and other display settings |
Holdings Management
| Tool | Description |
|---|---|
list_holdings |
List all holdings across all portfolios |
get_holding |
Get holding details with optional cost base and historical values |
update_holding |
Update holding settings (DRP configuration) |
delete_holding |
Remove a holding from a portfolio |
Custom Investments
| Tool | Description |
|---|---|
list_custom_investments |
List custom/unlisted investments |
get_custom_investment |
Get custom investment details |
create_custom_investment |
Create a new custom investment (property, bonds, etc.) |
update_custom_investment |
Update custom investment properties |
delete_custom_investment |
Remove a custom investment |
Custom Investment Prices
| Tool | Description |
|---|---|
list_custom_investment_prices |
Get price history for a custom investment |
create_custom_investment_price |
Add a new price entry |
update_custom_investment_price |
Modify an existing price entry |
delete_custom_investment_price |
Remove a price entry |
Coupon Rates (Fixed Interest)
| Tool | Description |
|---|---|
list_coupon_rates |
List interest rates for fixed interest investments |
create_coupon_rate |
Add a new coupon rate |
update_coupon_rate |
Modify a coupon rate |
delete_coupon_rate |
Remove a coupon rate |
Performance Reports
| Tool | Description |
|---|---|
get_performance_report |
Detailed performance breakdown with gains analysis |
get_performance_index_chart |
Chart data for visualizing portfolio performance |
Other
| Tool | Description |
|---|---|
list_countries |
Get Sharesight-supported countries and their settings |
show_coupon_code |
View applied promotional coupon code |
apply_coupon_code |
Apply a promotional coupon code |
delete_coupon_code |
Remove applied coupon code |
revoke_api_access |
Disconnect 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
- Sharesight Support: support@sharesight.com
- API Documentation: https://api.sharesight.com/doc/api/v3
- MCP Protocol: https://modelcontextprotocol.io/
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。