TRUSS MCP Server
A developer tool suite for Claude Code that automates the creation of CLAUDE.md files, project rules, and specialized AI agent definitions. It also provides advanced features for generating n8n workflows, performing security audits, and creating automated test cases.
README
TRUSS MCP Server
The structural layer for AI-native workflows.
AI-native developer tools for Claude Code. Generate CLAUDE.md files, rules, agent definitions, prompt templates, n8n workflows, security audits, and more — all from within your Claude Code session.
Quick Start
Run with npx (no install needed):
npx -y truss-mcp
Claude Desktop / Claude Code
Add to your claude_desktop_config.json or .claude/settings.json:
{
"mcpServers": {
"truss-devtools": {
"command": "npx",
"args": ["-y", "truss-mcp"]
}
}
}
Cursor
Add to your Cursor MCP settings:
{
"mcpServers": {
"truss-devtools": {
"command": "npx",
"args": ["-y", "truss-mcp"]
}
}
}
What's Included
Free Tier (no license needed)
| Tool | Description |
|---|---|
truss_init_project |
Initialize a project with CLAUDE.md, rules, and agent definitions |
truss_generate_claude_md |
Generate a CLAUDE.md from codebase analysis |
truss_search_prompts |
Search the prompt template library (3 results) |
Pro Tier ($25/mo)
| Tool | Description |
|---|---|
truss_generate_rules |
Generate .claude/rules/ files for any language + framework |
truss_generate_agents |
Generate .claude/agents/ definitions for specialized AI agents |
truss_generate_workflow |
Generate n8n workflow JSON from natural language |
truss_optimize_config |
Audit and optimize your existing Claude Code configuration |
truss_prompt_library |
Full prompt template library (20+ templates, 6 categories) |
truss_security_audit |
Scan code for security vulnerabilities with remediation |
truss_test_generator |
Generate test cases from code (JS/TS, Python, Go, Rust) |
Installation
npm install -g truss-mcp
Configuration
Add to your Claude Code MCP configuration (~/.claude/claude_desktop_config.json or project-level):
{
"mcpServers": {
"truss": {
"command": "truss-mcp",
"env": {
"TRUSS_LICENSE_KEY": "truss_your_license_key_here"
}
}
}
}
For the free tier, omit the env block:
{
"mcpServers": {
"truss": {
"command": "truss-mcp"
}
}
}
Usage Examples
Initialize a Project (Free)
"Use truss_init_project to set up my Node.js API project"
Generates CLAUDE.md, code style rules, testing rules, and a QA reviewer agent definition. Supports: Node.js, Python, Go, Rust, React, fullstack, monorepo, and library project types.
Generate CLAUDE.md (Free)
"Use truss_generate_claude_md to create a CLAUDE.md for my project"
Analyzes your file structure and generates a tailored CLAUDE.md with tech stack detection, build commands, and code style guidelines.
Search Prompts (Free)
"Use truss_search_prompts to find prompts about security review"
Searches the built-in library of 20+ prompt templates across code review, testing, documentation, security, architecture, and debugging categories.
Generate Rules (Pro)
"Use truss_generate_rules for TypeScript with the React framework"
Creates comprehensive .claude/rules/ files with language-specific code style, testing, and security rules. Supports framework-specific additions (React, Express, FastAPI, Gin, Actix, Next.js, Django).
Generate Agents (Pro)
"Use truss_generate_agents to create a Security Auditor agent"
Generates .claude/agents/ definitions with pre-built templates for common roles (QA Reviewer, Security Auditor, Documentation Writer, Performance Analyst, API Designer).
Generate Workflow (Pro)
"Use truss_generate_workflow: When a GitHub issue is created, send a Slack notification"
Generates importable n8n workflow JSON with nodes, connections, and configuration. Auto-detects required nodes from your description.
Optimize Config (Pro)
"Use truss_optimize_config with my CLAUDE.md content"
Audits your configuration for completeness, structure, and effectiveness. Provides a grade (A-F), identifies missing sections, and suggests improvements.
Security Audit (Pro)
"Use truss_security_audit on these files"
Pattern-based security scanner that detects hardcoded secrets, SQL injection, XSS, command injection, path traversal, weak cryptography, SSRF, and more.
Test Generator (Pro)
"Use truss_test_generator for this Python function"
Generates test files with happy path, edge case, and error handling tests. Supports Vitest/Jest (JS/TS), pytest (Python), Go testing, and Rust built-in tests.
Prompt Library Categories
The built-in prompt library includes templates for:
- Code Review: Security review, performance review, readability review, PR review
- Testing: Unit tests, integration tests, E2E scenarios
- Documentation: API docs, README generation, ADRs, changelog entries
- Security: Threat modeling, audit checklists, incident response playbooks
- Architecture: System design, migration plans, API design review
- Debugging: Root cause analysis, performance investigation, log analysis
Template Coverage
CLAUDE.md templates for 8 project types:
node-api— Node.js REST API (Express/Fastify)python-ml— Python ML/data science projectpython-api— Python API (FastAPI)go-service— Go microservicerust-cli— Rust CLI applicationreact-app— React SPA (TypeScript + Vite)fullstack— Full-stack application (frontend + backend + DB)monorepo— Monorepo (Turborepo/Nx)library— Publishable library/package
Rule templates for 4 languages: JavaScript/TypeScript, Python, Go, Rust
Running Evals
cd truss-mcp-server
npm run eval
The eval suite tests all free and Pro tools for correctness, output structure, and edge cases.
License
MIT -- see LICENSE.
Built by TRUSS -- the structural layer for AI-native workflows.
A2A Discovery
This server publishes a Google A2A Protocol Agent Card, making it discoverable by any A2A-compatible agent framework (LangGraph, CrewAI, Google ADK, AutoGen, and others).
Agent Card: agent-card.json
The agent card describes this server's skills, capabilities, input/output modalities, and authentication requirements in a machine-readable format. A2A clients can use it to discover and invoke tools automatically without manual configuration.
# Fetch the agent card
curl https://raw.githubusercontent.com/claw-factory/truss-mcp/main/agent-card.json
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。