sc-mcp

sc-mcp

A read-only MCP server that wraps the Scalable Capital CLI to expose broker data (portfolio, holdings, transactions, analytics, quotes, news) to any MCP-capable client.

Category
访问服务器

README

sc-mcp

An MCP server that wraps the Scalable Capital sc CLI, exposing your broker data to any MCP-capable harness (Claude Code, Claude Desktop, Codex, Cursor, …).

[!Warning] Unofficial. This is a community, read-only wrapper around Scalable Capital's official sc CLI, not affiliated with or endorsed by Scalable Capital. It's a stopgap until they ship a first-party MCP server; expect to retire it when they do.

No warranty / use at your own risk. Provided "as is" under the MIT License, with no warranty of any kind. The author takes no responsibility for any loss, damage, incorrect data, or financial consequence arising from its use. This is a personal tool for your own broker data, you are responsible for verifying anything you act on. It is not financial advice.

Tools

Tool What it returns
sc_overview Portfolio total value, cash, performance
sc_holdings All positions with prices, quantities, market values
sc_transactions Trade history with filters (date, ISIN, type, paging)
sc_analytics Allocation, sector/region exposure, attribution
sc_security_news Latest news summary for a security by ISIN
sc_quote Current quote for a security by ISIN
sc_search Search securities within the portfolio context
sc_transaction Details for a single transaction by ID

This server is read-only, it never places trades or mutates account state. All calls hit the broker live. Responses are cached in-process for 5 minutes.

The sc CLI also exposes write operations (watchlist, price-alerts, savings-plans, trades). These are deliberately not included in this release. Any future write support will be opt-in, disabled by default, and enabled only via an explicit environment flag, never on by default. Money-moving commands (trade, savings-plans) are out of scope entirely.

Prerequisites

  1. uv Python package manager installed and available on PATH.
  2. The sc CLI installed and on PATH.
  3. An authenticated session: sc login.

Compatibility

Tested against sc 0.2.x. The sc CLI is pre-1.0, so its command surface can change between minor versions, the server logs a warning to stderr at startup if your installed sc differs from the tested major.minor. Since sc is an external binary, not a Python dependency, so this is the only enforcement available. If you see the warning and a tool misbehaves, that mismatch is the likely cause.

Install

As long as the pre-requisites are met, installing as a Claude plugin or any other agent is breezy.

Claude Code (plugin, easiest)

This repo is also a Claude Code plugin marketplace. Two commands:

/plugin marketplace add ratulotron/sc-mcp
/plugin install sc-mcp@ratulotron

That registers the scalable-capital MCP server and a usage skill. It also bundles a light skill that tells Claude when and how to use the tools.

Claude Code (manual)

claude mcp add scalable-capital -- uvx --from git+https://github.com/ratulotron/sc-mcp@v0.1.0 sc-mcp

Cursor

Add to Cursor — or add to .cursor/mcp.json (or ~/.cursor/mcp.json):

{
  "mcpServers": {
    "scalable-capital": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/ratulotron/sc-mcp@v0.1.0", "sc-mcp"]
    }
  }
}

Codex

Add to ~/.codex/config.toml:

[mcp_servers.scalable-capital]
command = "uvx"
args = ["--from", "git+https://github.com/ratulotron/sc-mcp@v0.1.0", "sc-mcp"]

Claude Desktop (bundle, no config editing)

Download sc-mcp.mcpb, then in Claude Desktop go to Settings → Extensions → Install Extension and pick the file.

[!Note] If Claude Desktop can't find uvx, open the extension's settings and set the full path (e.g. /opt/homebrew/bin/uvx). GUI apps on macOS don't always inherit your shell PATH.

VS Code / other MCP clients

Add the standard server config (VS Code mcp.json, or any client's MCP config):

{
  "mcpServers": {
    "scalable-capital": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/ratulotron/sc-mcp@v0.1.0", "sc-mcp"]
    }
  }
}

Pin the @v0.1.0 tag (see Versioning). Drop it to track the latest main.

Configuration

Env var Default Effect
SC_MCP_CACHE_TTL 300 Seconds to cache successful responses in-process. Set 0 to disable caching (always hit the broker live).

Develop

uv sync
uv run sc-mcp      # starts the stdio server
uv run pytest

Maintaining compatibility as sc evolves, when to add/update tools, bump SUPPORTED_SC_VERSION, and the read-only invariants, is documented in CLAUDE.md.

Versioning

This package uses SemVer. The tools are the public API:

Bump Trigger
MAJOR A tool is removed/renamed, or a parameter changes incompatibly
MINOR A tool or optional parameter is added
PATCH Bug fix, error-message wording, internals

Releases are tagged vX.Y.Z. Pin a tag when installing, uvx --from git+... tracks the default branch (latest) by default, so without a pin your tool surface can change underneath you:

uvx --from git+https://github.com/ratulotron/sc-mcp@v0.1.0 sc-mcp

Most version bumps here are driven by sc CLI changes (see Compatibility), but the version number is this package's own, it does not mirror the sc version.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选