api-platform-mcp

api-platform-mcp is a skill for Claude Code, Codex from gerard-labs/superpowers-api-platform. It costs 0 tokens per session (801 once invoked), scanned A, original, MIT.

A set of API Platform 4.3 features for exposing selected API operations as tools that AI assistants can call. API Platform is a Symfony-based toolkit for building web APIs, and MCP is a standard for connecting assistants to tools.

In plain words
What is it for?
Use it to expose standalone tools or resource operations to assistants, including operations that read or change data.
Why use it?
It provides a way to let assistants call approved API operations while keeping tool inputs structured and adding safeguards such as validation, logging, and rate limits.

Skill for Claude CodeCodex

Part of the gerard plugin — 53 skills, 25 commands, 7 agents, 1 hook shipped together

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/gerard-labs/superpowers-api-platform/api-platform-mcp
Any agent
npx skills add gerard-labs/superpowers-api-platform --skill api-platform-mcp
Clone the repo
git clone --depth 1 https://github.com/gerard-labs/superpowers-api-platform

Made for: Claude Code, Codex.

Or install gerard, the plugin that ships this one along with the rest of its 53 skills, 25 commands, 7 agents, 1 hook.

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 api-platform-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/gerard-labs/superpowers-api-platform/api-platform-mcp.svg)](https://agentmods.dev/skills/gerard-labs/superpowers-api-platform/api-platform-mcp)
Your own site
<a href="https://agentmods.dev/skills/gerard-labs/superpowers-api-platform/api-platform-mcp"><img src="https://agentmods.dev/badge/skills/gerard-labs/superpowers-api-platform/api-platform-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 801 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00000 $0.00801
Opus 5 $0.00000 $0.00400
Sonnet 5 $0.00000 $0.00160
Haiku 4.5 $0.00000 $0.00080

Measured 4d ago against content hash 2353f78515ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-platform-mcp 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 4d 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.

skills/api-platform-mcp/SKILL.md · 50 lines

How it starts

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

API Platform 4.3 — MCP (Model Context Protocol) — @experimental

Use when

  • An AI agent (Claude, ChatGPT, Cursor, …) needs to call the API as a tool.
  • Specific operations should be exposed only to agents (no HTTP route).
  • The agent should consume Hydra-aware structured content for better context.

Default workflow

  1. Install api-platform/mcp + symfony/mcp-bundle with a pinned exact version (composer require api-platform/mcp:4.3.x).
  2. Configure mcp.yaml (transports, session store) and enable in api_platform.yaml.
  3. Define tools — either standalone with #[McpTool], or on existing resources via the mcp: keyword.
  4. For collections, use McpToolCollection(structuredContent: true).
  5. Enable validation explicitly (validate: true) on tools that mutate state.
  6. Add audit logging + dedicated rate limiting on /mcp.

Guardrails

  • @experimental: the API surface may change between minor releases. Pin the exact version.
  • Restricted tool set: expose only tools that are safe for an agent. No Delete without explicit confirmation flow.
  • Schema strict: explicitly declare input schemas via #[ApiProperty(schema: ...)] for LLMs that reject union types.
  • Audit log: trace every MCP call (who, what, when) — an AI agent is not a human user.
  • Rate limiting: a dedicated limiter on /mcp (cf. gerard:rate-limiting).
  • No PII leakage: review every tool's response payload — assume the AI may use it in a prompt that goes to a third party.

Progressive disclosure

  • SKILL.md covers posture and rules.
  • reference.md carries the full install, configuration, both declaration patterns (#[McpTool] standalone and mcp: on #[ApiResource]), McpToolCollection, validation, schema override, and bonnes pratiques.

Output contract

  • A pinned api-platform/mcp version.
  • Tools declared with #[McpTool] and / or via mcp: on resources.
  • Schemas overridden where needed for LLM compatibility.
  • Audit logging configured for /mcp.
  • Dedicated rate limit on the /mcp endpoint.

Read the full file on GitHub · 50 lines

Files

What ships with it

1 file 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. 4d ago First seen · 50 lines · 0 tokens per session scan A 2353f78515ac

Subscribe to this mod's changes

api-platform-mcp is a skill published in the GitHub repository gerard-labs/superpowers-api-platform (2 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 801 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-31.