Skip to content
Back to skills

Generate

ASecurity

Turn a codebase, an OpenAPI/gRPC/GraphQL spec, or a plain-language description of an API into a production-ready MCP server, using mcp-anything, then add it to the user's MCP client and grade it. Use when the user wants to expose software, an API, a CLI tool, or a service as MCP tools for Claude or other agents.

  • 69 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentstypescriptpythongitapibackend

Works with

  • claude code
  • cursor
  • vscode
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add Type-MCP/mcp-anything --skill generate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/type-mcp-generate/badge)](https://www.skillsdirectory.com/skills/type-mcp-generate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: generate
description: Turn a codebase, an OpenAPI/gRPC/GraphQL spec, or a plain-language description of an API into a production-ready MCP server, using mcp-anything, then add it to the user's MCP client and grade it. Use when the user wants to expose software, an API, a CLI tool, or a service as MCP tools for Claude or other agents.
when_to_use: "Use when the user asks to 'turn X into an MCP server', 'make an MCP server for Y', 'wrap this API/CLI as MCP tools', or wants agents to be able to call their software."
argument-hint: "[path-or-url] [--target fastmcp|mcp-use] [--model provider:model]"
allowed-tools: Read Grep Glob LS
---

## Generate an MCP server with mcp-anything

mcp-anything (https://github.com/gabrielekarra/mcp-anything) turns a codebase, an API spec, or a
plain-language brief into a working MCP server: Python/FastMCP by default, or TypeScript/mcp-use
with `--target mcp-use`.

### 1. Make sure the CLI is 0.3.0 or later

Run `mcp-anything --version`. If the command is not found, or the version is older than 0.3.0, the
CLI has to be installed or upgraded. Servers generated by 0.2.x do not start with `mcp` 2.x.

Do not install anything silently. Follow the install section of the mcp-anything README
(https://github.com/gabrielekarra/mcp-anything#install) or its PyPI page
(https://pypi.org/project/mcp-anything/), choosing the variant with the `llm` extra when the user
wants Claude models. Tell the user which command you are about to run and let them approve it.

### 2. Find out what to expose

Ask only what's missing:
- **The source**: a local codebase path, or an OpenAPI/GraphQL/gRPC spec (file path or URL).
- **What agents should be able to do with it**: a sentence or two of use cases is enough for the
  curated path below.

### 3. Pick a model

The LLM steps use `--model provider:model`, or `MCP_ANYTHING_MODEL` when the flag is not given.
The default is `anthropic:claude-opus-5-5`. Pick one the user has credentials for:

- `anthropic:<model>` needs `ANTHROPIC_API_KEY`
- `openai:<model>` needs `OPENAI_API_KEY`, and `openrouter:<model>` needs `OPENROUTER_API_KEY`
- `ollama:<model>`, `lmstudio:<model>`, `llamacpp:<model>` and `vllm:<model>` run locally
  (`MCP_ANYTHING_BASE_URL` overrides the address)

With no usable model, pass `--no-llm`. Every step then falls back to a deterministic design. It
works, but grouping and descriptions are better with a model.

### 4. Generate

- **One command** (no use cases given):
  `mcp-anything <path-or-url> -o <output-dir> --install claude-code`
  This drafts a brief from the source, builds the server, and saves the brief as
  `<output-dir>/brief.yaml`, so the user can edit it and rebuild.
- **Curated, agent-optimized tools** (use cases given): write a short brief to a temp YAML file
  (`server_name`, `domain_description`, `use_cases: [...]`), then run:
  `mcp-anything build --brief <brief.yaml> --data-source <path-or-spec> -o <output-dir> --install claude-code`
- Add `--target mcp-use` to either command for TypeScript instead of Python.
- `--install` accepts `claude-code`, `claude-desktop`, `cursor` and `vscode`, and can be repeated.
  Leave it out if the user does not want their client config changed. You can add the server
  later with `mcp-anything install <output-dir> --client <client>`, or use `--print` to show
  the config entry without writing it.

### 5. Check the result

`grade` and `eval` start the server, so its dependencies must be installed. `--install` already did
that. Otherwise install them first, following the README the generator wrote in `<output-dir>` (a
Python package for the default target, an npm project for `--target mcp-use`), and let the user
approve each install command.

- `mcp-anything grade <output-dir>` scores how easy the tools are for an agent to pick and call,
  on 15 rules, and lists what to fix. A generated server should grade A (90 or more). If it scores
  lower, report the top findings.
- `mcp-anything validate <output-dir>` checks the server against mcp-anything's output contract
  (tool shape, transport, telemetry, packaging).
- `mcp-anything eval <output-dir>` runs the generated `eval_cases.json` against the live server.
  Add `--agent` to have a model solve each use case with the server's tools. This needs a working
  backend behind the server.

### 6. Report back

Report the output directory, the tool count, the grade, and which clients the server was added to.
If it was not installed, show the config entry from
`mcp-anything install <output-dir> --client <client> --print`. The user should
restart the client, or run `/mcp` in Claude Code, to see the new tools.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.