HS

haizzz/sharesight-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5 stars 6 forks 质量 71 趋势 6MIT

非正式的共享视觉 MCP

概览

一个模式上下文协议(MCP)服务器,通过v3API为AI助手提供访问Sharesight组合跟踪平台的机会. 你需要一个来自Sharesight的服务器 - 联系人 Sharesight 支持 at [email protected] 请求 API 访问 - 访问 Sharesight API 文档获取更多信息 - API 访问可能需要特定的 Sharesight 计划 CLI将: 1. 提示您的客户身份和客户秘密 2. 在浏览器 3 中显示要打开的 URL 。 请您登录到Sharesight并授权应用4. 让你贴上授权码5 本地保存符号( 它们自动刷新) ~/图书馆/应用程序支持/Claude/claude desktop config.json %APDATA+Claude\claude desktop config.json 重新启动克洛德桌面,你可以走了!

概述(AI 翻译)

一个模式上下文协议(MCP)服务器,通过v3API为AI助手提供访问Sharesight组合跟踪平台的机会.

□ 快开始

第1步:获得奥地利证书

您需要来自Sharesight的** Client ID** 和** Client Secret** 来使用此服务器.

** 如何获得全权证书:**

  • 在支持中联系Sharesight支持@sharesight.com 请求API访问 访问 Sharesight API 文档以获取更多信息
  • API访问可能需要具体的Sharesight计划

• 第2步:运行一次性验证

CLI将:

  1. 提示客户身份和客户秘密
  2. 在浏览器中显示要打开的 URL
  3. 请您登录到Sharesight并授权应用
  4. 促使您粘贴授权代码
  5. 本地保存令牌( 自动刷新)

QQ 第3步: 添加 MCP 服务器配置

添加到您的 Claude 桌面配置文件 :

** macOS:** ~/Library/Application Support/Claude/claude_desktop_config.json ** 窗口:** %APPDATA%\Claude\claude_desktop_config.json

重新启动克洛德桌面,你可以走了!

□ 概览

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 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:

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

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
在 GitHub 查看完整 README

安装

npx -y github:Haizzz/sharesight-mcp serve
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sharesight": { "command": "npx", "args": ["-y", "github:Haizzz/sharesight-mcp", "serve"], "env": { "SHARESIGHT_CLIENT_ID": "your_client_id", "SHARESIGHT_CLIENT_SECRET": "your_client_secret" } } } }