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 分