mcp-architecture

mcp-architecture is a skill for Claude Code from frankxai/claude-skills-library. It costs 48 tokens per session (2,564 once invoked), scanned A, original, MIT.

A guide for designing and implementing Model Context Protocol servers with tools, resources, prompts, and security controls. MCP lets AI agents connect to outside services and data.

In plain words
What is it for?
Use it to plan MCP server architecture, model its tools and resources, or connect a service as an MCP endpoint.
Why use it?
It helps turn a service into a well-structured agent endpoint while accounting for security and the different parts an MCP server can expose.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-skills-library plugin — 117 skills shipped together

Good fit Use it to plan MCP server architecture, model its tools and resources, or connect a service as an MCP endpoint.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frankxai/claude-skills-library/mcp-architecture
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.

Any agent
npx skills add frankxai/claude-skills-library --skill mcp-architecture
Clone the repo
git clone --depth 1 https://github.com/frankxai/claude-skills-library

Made for: Claude Code.

Or install claude-skills-library, the plugin that ships this one along with the rest of its 117 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/frankxai/claude-skills-library/mcp-architecture/github.svg)](https://agentmods.dev/skills/frankxai/claude-skills-library/mcp-architecture)
Your own site
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/mcp-architecture"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/mcp-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/mcp-architecture"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/mcp-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,564 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.00048 $0.02564
Opus 5.5 $0.00019 $0.01026
Sonnet 5.5 $0.00010 $0.00513
Haiku 4.5 $0.00005 $0.00256

Measured 27d ago against content hash ac0dafa62ce2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-architecture 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 27d 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.

free-skills/mcp-architecture/SKILL.md · 474 lines

How it starts

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

MCP Architecture Expert Skill

Purpose

Master the Model Context Protocol (MCP) to build standardized, reusable integrations between AI systems and data sources, eliminating the N×M integration problem.

What is MCP?

Model Context Protocol

Open standard (November 2024, Anthropic) for connecting AI systems to external data sources and tools through a unified protocol.

The Problem: N agents × M tools = N×M custom integrations The Solution: N agents + M MCP servers = N+M integrations (any agent uses any tool)

Architecture

┌─────────────┐
│  MCP Host   │  (Claude Desktop, IDEs, Apps)
│   ┌─────┐   │
│   │Client│──┼──┐
│   └─────┘   │  │
└─────────────┘  │
                 │ JSON-RPC 2.0
                 │
┌────────────────┼─────────────┐
│  MCP Server    ▼             │
│  ┌──────────────────┐        │
│  │  Resources       │        │
│  │  Tools           │        │
│  │  Prompts         │        │
│  └──────────────────┘        │
│         │                    │
│         ▼                    │
│  ┌──────────────────┐        │
│  │ Data Source      │        │
│  │ (DB, API, Files) │        │
│  └──────────────────┘        │
└─────────────────────────────┘

Three Core Capabilities

1. Resources

Purpose: Expose data for AI to read

Examples:

  • File contents
  • Database records
  • API responses
  • Documentation

Definition:

{
  "resources": [
    {
      "uri": "file:///docs/api-spec.md",
      "name": "API Specification",
      "mimeType": "text/markdown"
    },
    {
      "uri": "db://customers/12345",
      "name": "Customer Record",
      "mimeType": "application/json"
    }
  ]
}

2. Tools

Purpose: Functions AI can invoke

Examples:

  • Query database
  • Call external API
  • Process files
  • Execute commands

Definition:

{
  "tools": [
    {
      "name": "query_database",
      "description": "Execute SQL query on customer database",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {"type": "string"}
        },
        "required": ["query"]
      }
    }
  ]
}

Read the full file on GitHub · 474 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. 27d ago Changed · +1 lines ac0dafa62ce2
  2. 2mo ago Changed 9a5ebe71a8bd
  3. 2mo ago First seen · 473 lines · 48 tokens per session scan A dfa20715fa22

Subscribe to this mod's changes

mcp-architecture is a skill published in the GitHub repository frankxai/claude-skills-library (51 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 2,564 once invoked, about $0.0002 per session on Opus 5.5. 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-09-03.

Related

mcp-architecture compared with skills from other repositories

mcp-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-architecturefrankxai/claude-skills-librarySkill51todayMITA48Claude Code
token-saverchidekina/aria-superpowersSkill21mo agononeC85Claude Code, Codex
wayfindervinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA40Claude Code, Codex
scaffold-exercisesvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA46Claude Code, Codex
domain-modelingvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA38Claude Code, Codex
migrate-to-shoehornvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA53Claude Code, Codex
ask-mattvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA28Claude Code, Codex