mcp-builder

mcp-builder is a skill for Claude Code, Codex from neverinfamous/memory-journal-mcp. It costs 100 tokens per session (741 once invoked), scanned C, original, MIT.

Guidelines for building Model Context Protocol (MCP) servers, which let AI applications call tools and receive structured results.

In plain words
What is it for?
Use them when creating or reviewing MCP server code, including argument validation, structured error responses, logging, secrets, rate limits, and optional Playwright tests.
Why use it?
They help prevent invalid inputs, unhandled failures, exposed secrets, and weak security boundaries in MCP tools.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/mcp
Any agent
npx skills add neverinfamous/memory-journal-mcp --skill mcp
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/mcp.svg)](https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/mcp)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/mcp"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00100 $0.00741
Opus 5 $0.00050 $0.00370
Sonnet 5 $0.00020 $0.00148
Haiku 4.5 $0.00010 $0.00074

Measured 5d ago against content hash 3dff783c1261, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade C, and why

mcp-builder scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Blocklists are Defense-in-Depth**: A blocklist (e.g., forbidding `rm -rf` in a terminal tool) is not a primary security boundary. Your primary security is the sandbox, container, or strict schema validation.
skills/agents-sdk/references/mcp/SKILL.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Server Builder Guidelines

This skill defines the high-integrity requirements for building MCP servers in this ecosystem.

1. Core Requirements

When building or modifying MCP servers, follow these prioritized rules:

  • Must: Use Zod for all tool argument validation. Do not blindly trust MCP client inputs.
  • Must: Return structured errors ({ isError: true, content: [...] }) from tools rather than throwing raw unhandled exceptions that crash the server.
  • Should: Wrap handlers in try/catch blocks that gracefully surface errors to the LLM context.
  • Should: Centralize error logging using standard prefixes (e.g., [MCP Error]).
  • Optional: Depending on the repository, implement integration testing via Playwright for dual HTTP/SSE verification.

2. Security (Defense-in-Depth)

  • Blocklists are Defense-in-Depth: A blocklist (e.g., forbidding rm -rf in a terminal tool) is not a primary security boundary. Your primary security is the sandbox, container, or strict schema validation.
  • No Secrets in Config: MCP servers must rely on the environment variables for API keys and secrets, never hardcoded files inside the server repository.
  • Rate Limiting & Input Sanitization: Aggressively sanitize path arguments to prevent directory traversal (../../), and apply basic rate-limiting to tools that trigger heavy compute or external API calls.

3. Deep References

For the complete MCP implementation guide, architecture diagrams, and detailed tooling patterns, consult the full reference:

  • MCP Implementation Guide: Contains transport selection (stdio vs. SSE), auth patterns, and multi-tool orchestration diagrams.

4. Scaffold Reference

When you need a minimal, fully compliant MCP server scaffold, use this structure:

import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
import { z } from 'zod'

// Initialize the modern McpServer pattern
const server = new McpServer({ name: 'my-mcp', version: '1.0.0' })

// Define tools using server.tool() which auto-registers schemas and handlers
server.tool(
  'my_tool',
  'Does something using an ID',
  { id: z.string().describe('The user ID to process') },
  async ({ id }) => {
    try {
      // Logic here (input is already validated by Zod)
      return { content: [{ type: 'text', text: `Got ID: ${id}` }] }
    } catch (err) {
      // Graceful error return
      return { isError: true, content: [{ type: 'text', text: `Error: ${err}` }] }
    }
  }
)

// Connect via standard I/O
const transport = new StdioServerTransport()
await server.connect(transport)

Read the full file on GitHub · 66 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 66 lines · 100 tokens per session scan C 3dff783c1261

Subscribe to this mod's changes

mcp-builder is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 100 tokens to every session and 741 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

system-audit

Periodic evidence-based self-audit of the whole agent system — the orchestrator, its docs/SSOTs, rules, memory, subagents, tools, infra and the work it claims to have delivered — followed by immediate cheap-safe fixes and a ranked backlog. Use when the user says 'аудит системы', 'проверь себя', 'самопроверка', 'system…

awrshift/agent-memory-kit · 225 tokens

run-orchestrator

Execute 5-phase TDD workflow for complex features. Use when the user invokes /run, asks to build/create/implement a feature, requests a complex multi-file change, or types 'fasttrack:'. Enforces phase gates, sprint contracts, and builder!=reviewer discipline.

nguyenthienthanh/aura-frog · 62 tokens

tech-writing

Write professional technical documents — requirements/PRD, tech spec/design doc, low-level design, decision records, and trade-off analysis — at a formality tier matched to the task. Grounds every claim in real code or a cited source, marks what it could not verify, and refuses to pad. Use when asked to write/update a…

nguyenthienthanh/aura-frog · 88 tokens

plan-orchestrator

Route hierarchical-planning intents to the correct backing script. Use when the user invokes /aura-frog:plan (with or without subcommand), mentions plan verbs (expand/next/replan/promote/archive/freeze/thaw/undo/status/conflicts), or types a plan-vocabulary bare word with .claude/plans/active.json present. Owns verb…

nguyenthienthanh/aura-frog · 91 tokens

perf-profiling

Systematic performance profiling and optimization across frontend (Core Web Vitals, code splitting, lazy loading), backend (N+1 queries, async), and database (EXPLAIN ANALYZE, indexing) layers. Use when the user reports slow code, latency, memory leaks, needs to benchmark, or wants to speed up an application. Measure…

nguyenthienthanh/aura-frog · 107 tokens

deep-debugging

Systematic debugging protocol for bugs that resist quick fixes. Use bisection, hypothesis trees, and scientific method when a bug isn't obvious from the stack trace. Goes beyond bugfix-quick for production-grade root cause analysis.

nguyenthienthanh/aura-frog · 49 tokens