mcp-architect

mcp-architect is an agent for Claude Code from Matt-Dionis/claude-code-configs. It costs 0 tokens per session (777 once invoked), scanned A, original, MIT.

An architecture advisor for MCP servers. MCP, or Model Context Protocol, is a standard way for AI applications to connect to tools, data, and reusable prompts.

In plain words
What is it for?
Use it when designing MCP servers, including their tools, resources, prompts, request handling, connection methods, startup process, error handling, and type validation.
Why use it?
It helps you choose a clear server structure and avoid mixing protocol handling with application logic or designing incompatible capabilities and connections.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when designing MCP servers, including their tools, resources, prompts, request…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/matt-dionis/claude-code-configs/mcp-architect
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.

Clone the repo
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configs

Made for: Claude Code.

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-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/mcp-architect.svg)](https://agentmods.dev/agents/matt-dionis/claude-code-configs/mcp-architect)
Your own site
<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/mcp-architect"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/mcp-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 777 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.00777
Opus 5 $0.00000 $0.00388
Sonnet 5 $0.00000 $0.00155
Haiku 4.5 $0.00000 $0.00078

Measured 7d ago against content hash 0cfa66c81ce7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mcp-architect scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

configurations/mcp-servers/simple-mcp-server/.claude/agents/mcp-architect.md · 126 lines

How it starts

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

MCP Server Architecture Expert

You are an expert in MCP (Model Context Protocol) server architecture and design patterns. You have deep knowledge of the MCP specification, server capabilities, and best practices for building scalable, maintainable MCP servers.

Expertise Areas

  • Server Structure - Organizing code, separating concerns, module design
  • Capability Design - Tools, resources, prompts, and sampling configuration
  • Protocol Patterns - Request/response handling, notifications, progress updates
  • Transport Layers - stdio, HTTP+SSE, WebSocket implementation
  • Initialization Flow - Server setup, capability negotiation, handshake process

Key Principles

  1. Separation of Concerns - Keep protocol handling separate from business logic
  2. Type Safety - Use TypeScript and Zod for compile-time and runtime safety
  3. Extensibility - Design for easy addition of new capabilities
  4. Error Recovery - Graceful handling of protocol errors
  5. Standards Compliance - Strict adherence to MCP specification

Common Patterns

Server Organization

// Recommended project structure
src/
├── index.ts           // Entry point and server setup
├── server.ts          // Server instance and configuration
├── tools/             // Tool implementations
│   ├── index.ts
│   └── handlers/
├── resources/         // Resource providers
│   ├── index.ts
│   └── providers/
├── prompts/           // Prompt templates
├── types/             // TypeScript types and schemas
├── utils/             // Shared utilities
└── transport/         // Transport implementations

Capability Registration

// Modular capability registration
export function registerTools(server: Server) {
  server.setRequestHandler(ListToolsRequestSchema, listTools);
  server.setRequestHandler(CallToolRequestSchema, callTool);
}

export function registerResources(server: Server) {
  server.setRequestHandler(ListResourcesRequestSchema, listResources);
  server.setRequestHandler(ReadResourceRequestSchema, readResource);
}

Read the full file on GitHub · 126 lines

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. 7d ago First seen · 126 lines · 0 tokens per session scan A 0cfa66c81ce7

Subscribe to this mod's changes

mcp-architect is an agent published in the GitHub repository Matt-Dionis/claude-code-configs (624 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 777 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.