About StylePilot MCP Server
StylePilot MCP Server manages text, card, and structure style templates for LLMs to retrieve and apply when generating content. It combines template search and editing with an application prompt, and stores templates in local JSON files.
Key features
- 01Text, card, and structure templates
- 02Keyword-based template search
- 03Create, update, and delete templates
- 04Apply styles through a prompt
Use cases
- 01Find a style template for content
- 02Create and maintain custom templates
- 03Generate content using a template
MCP support
It exposes style-template resources, management tools, and an apply_style prompt to MCP clients for listing, searching, retrieving, and modifying templates.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEStylePilot MCP Server
基于Model Context Protocol (MCP)的风格模板服务,用于存储和提供各类内容风格模板,供大语言模型(LLM)通过MCP协议调用,以实现风格化输出。
功能特点
资源 (Resources)
- 提供三种风格类别模板:文本风格、卡片风格、结构风格
- 通过
style:///{category}/{style_id}URI访问风格模板 - 每个风格模板包含详细的多维度特征描述
- 以JSON格式提供风格定义
工具 (Tools)
get_style- 获取特定风格模板search_style- 通过关键词搜索风格模板create_style- 创建新风格模板update_style- 更新现有风格模板delete_style- 删除风格模板list_styles- 列出可用风格模板
提示 (Prompts)
apply_style- 应用风格模板生成内容- 指导LLM获取并应用风格模板生成内容
- 支持多维度风格特征的应用
开发指南
安装依赖:
npm install
构建服务器:
npm run build
开发模式(自动重新构建):
npm run watch
安装与集成
要在支持MCP的LLM客户端(如Claude Desktop)中使用,添加服务器配置:
在Windows上: %APPDATA%/Claude/claude_desktop_config.json
在MacOS上: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"stylepilot": {
"command": "/path/to/mcp-server-stylepilot/build/index.js"
}
}
}
调试
由于MCP服务器通过标准输入/输出流(stdio)通信,可以使用MCP Inspector进行调试:
npm run inspector
Inspector将提供一个URL,可在浏览器中访问调试工具。
使用流程
获取并应用风格模板
- 使用
list_styles工具列出所有可用风格 - 或者使用
search_style工具通过关键词搜索特定风格(例如搜索"卡片"或"散文") - 使用
get_style工具获取详细的风格模板定义 - 根据风格模板生成内容
创建新风格模板
- 定义风格模板各个维度的特征
- 使用
create_style工具创建新风格 - 应用新创建的风格模板
数据存储
风格模板存储在本地JSON文件中:
data/text_styles.json- 文本风格data/card_styles.json- 卡片风格data/structure_styles.json- 结构风格
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.