Stylemcp

io.github.3DUNLMTD由 GitHub 账号 3DUNLMTD 发布v0.1.4更新于 Oct 24, 2026

Brand rules for AI outputs. Validate and rewrite text to match your brand voice.

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

按品牌风格包校验并改写 AI 生成的文本,让助手能检查文案、修正语气并读取品牌规则。

可以做什么
  • 按品牌风格包校验文本,返回评分与违规项
  • 按品牌语气改写文本
  • 读取风格包背后的规则:语气与语调指南、已批准的文案模式、CTA 规则和设计令牌
  • 列出可用的风格包(如 saas、ecommerce、healthcare、finance)
适用场景
适合在助手撰写营销、产品或界面文案时,对每条输出按既定品牌语气进行检查或改写;也适合让模型在写作过程中随时查阅品牌规则。
运行要求
以 stdio 方式在本机运行,通常通过 npx stylemcp 启动,需要 Node.js。README 还介绍了托管 REST API 以及用 Docker 或 npm 自托管的方式,其中涉及 PORT、STYLEMCP_API_KEY 和 GITHUB_WEBHOOK_SECRET。MCP 服务器本身未声明任何凭据。
安装前请注意
改写工具会修改文本,发布前请人工复核。README 中的托管 API 示例会把文本发送到外部服务;若文案涉密,请使用本地服务器。自托管并启用鉴权时,需要自行设置 STYLEMCP_API_KEY 和 GITHUB_WEBHOOK_SECRET。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Stylemcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

StyleMCP

Executable brand rules for AI models and agents. Keep every AI-generated message on-brand.

What is StyleMCP?

StyleMCP validates and rewrites AI-generated text to match your brand voice. Use it as:

  • REST API - Validate text from any application
  • MCP Server - Direct integration with Claude and other AI agents
  • CLI - Check copy in your terminal or CI/CD
  • GitHub Action - Catch off-brand copy in pull requests

Quick Start

API

bash
curl -X POST https://stylemcp.com/api/validate \  -H "Content-Type: application/json" \  -d '{"text": "Click here to learn more!"}'

Response:

json
{  "valid": false,  "score": 65,  "violations": [    {      "rule": "no-click-here",      "severity": "error",      "message": "Avoid 'click here' - describe the destination instead",      "suggestion": "Learn more about our features"    }  ]}

CLI

bash
# Installnpm install -g stylemcp
# Validate textstylemcp validate "Click here to learn more"
# Validate filestylemcp validate src/copy/homepage.json --pack saas
# Rewrite textstylemcp rewrite "Please utilize our product" --mode aggressive

MCP (Claude Desktop)

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "stylemcp": {      "command": "npx",      "args": ["stylemcp"]    }  }}

Now Claude can validate and rewrite text using your brand rules.

API Endpoints

MethodEndpointDescription
POST/api/validateValidate text against brand rules
POST/api/rewriteRewrite text to match brand voice
POST/api/validate/batchValidate multiple texts
GET/api/packsList available style packs
GET/api/packs/{pack}/voiceGet voice guidelines
GET/api/packs/{pack}/ctasGet CTA rules
GET/api/mcp/sseMCP SSE endpoint
POST/api/mcp/callMCP tool calls

Style Packs

StyleMCP uses style packs - YAML files that define your brand rules.

Available Packs

PackBest ForKey Features
saasB2B SaaS productsProfessional, clear, helpful tone
ecommerceDTC & retail brandsFriendly, conversion-focused, no pushy CTAs
healthcareMedical & wellnessCompliant language, no cure claims, person-first
financeFintech & bankingPrecise, risk-aware, no guaranteed returns

Example: saas Pack

  • Vocabulary: Prefer "use" over "utilize", "help" over "assist"
  • Forbidden words: "synergy", "leverage", "cutting-edge", "game-changing"
  • Patterns to avoid: "click here", "we're sorry for any inconvenience"
  • CTA rules: Avoid "Submit", "Click here", "OK" - prefer "Save", "Create", "Sign up"

Pack Structure

packs/  my-brand/    manifest.yaml      # Pack metadata    voice.yaml         # Tone, vocabulary, forbidden words    copy_patterns.yaml # Reusable copy templates    cta_rules.yaml     # Button/CTA guidelines    tokens.json        # Design tokens (optional)

Create Your Own Pack

bash
# Copy the default packcp -r packs/saas packs/my-brand
# Edit the rulesnano packs/my-brand/voice.yaml
# Use your packcurl -X POST https://stylemcp.com/api/validate \  -d '{"text": "Your text", "pack": "my-brand"}'

voice.yaml Example

yaml
tone:  summary: "Friendly, clear, and helpful"  attributes:    - name: friendly      weight: 0.8    - name: professional      weight: 0.7
vocabulary:  rules:    - preferred: "use"      avoid: ["utilize", "leverage"]    - preferred: "help"      avoid: ["assist", "facilitate"]
  forbidden:    - "synergy"    - "paradigm shift"    - "game-changing"
doNot:  - pattern: "click here"    reason: "Poor accessibility"    suggestion: "Describe the destination"    severity: error
  - pattern: "\\b(obviously|simply|just)\\b"    isRegex: true    reason: "Can make users feel stupid"    severity: warning

Self-Hosting

Docker

bash
# Clone the repogit clone https://github.com/3DUNLMTD/stylemcp.gitcd stylemcp
# Set up environmentecho "STYLEMCP_API_KEY=$(openssl rand -hex 32)" > .env
# Run with Dockerdocker compose up -d
# Check healthcurl http://localhost:3000/health

Manual

bash
# Install dependenciesnpm install
# Buildnpm run build
# Start servernpm start

GitHub Actions

yaml
name: Brand Checkon: [pull_request]
jobs:  validate:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4
      - name: Validate copy        run: |          npx stylemcp validate src/copy/*.json \            --min-score 80 \            --format github

Environment Variables

VariableDescriptionDefault
PORTServer port3000
STYLEMCP_API_KEYAPI key for authentication(none)
GITHUB_WEBHOOK_SECRETGitHub webhook secret(none)

MCP Tools

When used as an MCP server, StyleMCP provides these tools:

ToolDescription
validate_textValidate text against brand rules
rewrite_to_styleRewrite text to match brand voice
get_voice_rulesGet voice and tone guidelines
get_copy_patternsGet approved copy patterns
get_cta_rulesGet CTA guidelines
get_tokensGet design tokens
list_packsList available style packs

What Gets Validated?

The saas pack checks for:

Vocabulary

  • Use simple words: "use" not "utilize", "help" not "assist"
  • Avoid jargon: "synergy", "leverage", "paradigm shift"
  • Avoid weak intensifiers: "very", "really", "extremely"

Patterns

  • No "click here" (accessibility issue)
  • No "we're sorry for any inconvenience" (corporate non-apology)
  • No double "please" (sounds desperate)
  • No starting with "Sorry" (lead with solutions)

CTAs

  • Avoid generic: "Submit", "OK", "Yes/No", "Click here"
  • Use specific actions: "Save", "Create", "Sign up", "Export"
  • Max 4 words

Constraints

  • Max 25 words per sentence
  • No exclamation marks (in most contexts)
  • First-person plural ("we", "our")
  • Oxford comma

License

MIT

来源:README.md,提交 fb5ea98

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。