Schematic

io.github.SchematicHQ由 GitHub 帳號 SchematicHQ 發布v0.4.0更新於 Oct 24, 2026

Manage companies, plans, features, and billing through SchematicHQ

已驗證STDIO僅桌面開發者工具商業與電商

概覽

AI 產生的概覽

將 AI 助理連接到 SchematicHQ,以自然語言查詢公司、管理方案、功能、權益、覆寫設定和旗標。

可以做什麼
依 ID、名稱、Stripe 客戶 ID 或自訂鍵查詢公司,查看其方案、試用狀態和 Stripe 連結,統計某方案下的公司數量,並依鍵建立或更新公司。列出、設定和移除針對公司的功能覆寫,支援布林、數值和無限值。列出和建立方案,並為方案加入功能權益。列出和建立功能,包括布林、按量計費和特徵型類型。列出旗標及其定向摘要,並取得單一旗標的完整定向規則。
適用情境
適合需要管理 Schematic 帳戶、希望以對話方式而非儀表板查詢或修改計費、方案、權益、功能和旗標設定的使用者。請注意 README 已將此本機伺服器標示為棄用,建議改用託管的 Schematic MCP 端點。
執行需求
透過 npm 套件以 stdio 在本機執行,通常以 npx 啟動,因此需要 Node.js。需要 Schematic 帳戶和 secret API 金鑰,透過 SCHEMATIC_API_KEY 環境變數或 ~/.schematic-mcp/config.json 設定檔提供。選用變數 SCHEMATIC_API_URL 可指向非正式環境 API。
安裝前請注意
secret API 金鑰具備帳戶層級存取權限,請勿放入共用設定,優先使用環境變數而非設定檔。多個工具會寫入資料:create_company 會建立或更新公司,set_company_override 和 remove_company_override 會變更權益,create_plan、add_entitlements_to_plan 和 create_feature 會建立計費和功能設定。README 說明此本機伺服器已棄用,不再接收新工具或修正。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Schematic,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Schematic MCP Server

[!WARNING] Deprecated. Schematic now hosts an MCP server at https://api.schematichq.com/mcp — see the Schematic MCP documentation to connect. This local stdio server still works but no longer receives new tools or fixes.

An MCP server that connects AI assistants to Schematic -- the platform for managing billing, plans, features, and entitlements.

Use this server to let Claude, Cursor, or any MCP-compatible client look up companies, manage plan entitlements, set overrides, create features, and more -- all through natural language.

Quick Start

Prerequisites

  1. Get your Schematic secret API key: Sign up for a Schematic account and get your secret API key from the Schematic dashboard. Note: use your secret API key, not the publishable key.

Installation

Option 1: Using Claude CLI (Recommended)
  1. Install the package from npm:

    bash
    npm i @schematichq/schematic-mcp
  2. Add the MCP server to Claude:

    bash
    claude mcp add --transport stdio --scope project schematic --env SCHEMATIC_API_KEY=your-secret-api-key-here -- npx @schematichq/schematic-mcp

    Replace your-secret-api-key-here with your actual Schematic API key.

Option 2: Manual Configuration
Claude Desktop / Claude Code

Add to your Claude config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

json
{  "mcpServers": {    "schematic": {      "command": "npx",      "args": ["-y", "@schematichq/schematic-mcp"],      "env": {        "SCHEMATIC_API_KEY": "your-secret-api-key-here"      }    }  }}

Cursor

Add to your Cursor MCP config (Settings > MCP Servers, or edit the file directly):

  • macOS: ~/.cursor/mcp.json
  • Linux: ~/.cursor/mcp.json
  • Windows: %USERPROFILE%\.cursor\mcp.json
json
{  "mcpServers": {    "schematic": {      "command": "npx",      "args": ["-y", "@schematichq/schematic-mcp"],      "env": {        "SCHEMATIC_API_KEY": "your-secret-api-key-here"      }    }  }}

After adding the config, restart Cursor for the server to be picked up.

Configuration

The server needs a Schematic secret API key (not the publishable key). It checks two sources in order:

  1. Environment variable (recommended): SCHEMATIC_API_KEY
  2. Config file (fallback): ~/.schematic-mcp/config.json
json
{  "apiKey": "your-secret-api-key-here"}

You can find your secret API key in the Schematic dashboard.

Custom API base URL (optional)

By default the server targets the production Schematic API. To point it at a local or non-production API, set SCHEMATIC_API_URL:

json
{  "command": "npx",  "args": ["@schematichq/schematic-mcp"],  "env": {    "SCHEMATIC_API_KEY": "your-secret-api-key-here",    "SCHEMATIC_API_URL": "http://localhost:8080"  }}

When unset, the SDK's production default is used.

Tools

Company Lookup

ToolDescription
get_companyLook up a company by ID, name, Stripe customer ID, or custom key. Returns details, plan, trial status, and links.
create_companyCreate (upsert) a company identified by a key (keyName/keyValue), with an optional name and traits. Updates the company if the key already exists.
get_company_planGet the plan a company is currently on.
get_company_trial_infoCheck if a company is on a trial and when it ends.
count_companies_on_planCount how many companies are on a specific plan.
link_stripe_to_schematicFind the Schematic company for a Stripe customer ID, or vice versa.

Company Overrides

ToolDescription
list_company_overridesList overrides by company or by feature.
set_company_overrideSet or update an override for a company on a specific feature. Supports boolean (on/off), numeric, and unlimited values.
remove_company_overrideRemove an override so the company falls back to plan entitlements.

Plan Management

ToolDescription
list_plansList all plans.
create_planCreate a new plan.
add_entitlements_to_planAdd feature entitlements to a plan. Auto-detects feature type and sets appropriate value types.

Feature Management

ToolDescription
list_featuresList all features.
create_featureCreate a new feature flag. Supports boolean (on/off), event-based (metered), and trait-based types. Automatically creates an associated flag.

Flag Management

ToolDescription
list_flagsList all flags with a targeting summary — for each flag: key, default value, linked feature, and whether it resolves to always-on, always-off, or targeted. Useful for auditing always-on flags (redundant to check in code) or unused flags (candidates for deletion).
get_flagGet full targeting detail for one flag by key: default value, every rule (type, value, priority, condition count), last-checked time, and the always-on / always-off / targeted determination.

Example Prompts

Once configured, try asking your AI assistant:

  • "What plan is Acme Corp on?"
  • "List all my plans and their features"
  • "Create a boolean feature called 'Advanced Analytics'"
  • "Set an override for Acme Corp to have unlimited API calls"
  • "How many companies are on the Pro plan?"
  • "Find the Schematic company linked to Stripe customer cus_abc123"
  • "List all flags and tell me which ones are always-on"
  • "Show me the targeting rules for the billing.credits flag"

Development

bash
# Install dependenciesyarn install
# Buildyarn build
# Run in development mode (auto-recompile on changes)yarn dev
# Run testsyarn test

License

MIT

來源:README.md,提交 4141cb3

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.4.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分