generate-server-card
Generate an MCP server card JSON (mcp-gateway-registry format) by analyzing server source code in a folder or GitHub URL. Studies code to detect server name, tools, transport, auth, and generates a registry-compatible config.
npx skills add agentic-community/mcp-gateway-registry --skill generate-server-card --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Generate MCP Server Card Generate an MCP server card JSON file in the mcp-gateway-registry format by analyzing the source code at `$ARGUMENTS`. This format is used by https://github.com/agentic-community/mcp-gateway-registry for registering MCP servers in the gateway registry. ## Steps ### 1. Carefully study the source code Do NOT just skim the top-level files. MCP servers can be complex, multi-file projects. You MUST thoroughly explore the entire folder structure before generating the card. If `$ARGUMENTS` is a local folder path, use Glob to find ALL Python files, YAML/JSON configs, and README files in the folder and its subfolders. Read every relevant file. If `$ARGUMENTS` is a GitHub URL, use `WebFetch` to read the raw file contents. Follow imports to discover additional files. **Where to look** (MCP servers are not always a single file): - **Entrypoints**: `main.py`, `app.py`, `server.py`, `__main__.py`, `mcp_server.py` - **Tool definitions**: look for `@mcp.tool()`, `@server.tool()`, `@tool`, tool handler functions, tool registrations - **OpenAPI specs**: `.json` or `.yaml` files in `openapi-specs/`, `specs/`, `api/` folders - these define the tools when an API is exposed as
- Steps
- 1. Carefully study the source code
- 2. Generate the server card JSON
- 3. Do NOT populate toollist
- 4. Set the path
- 5. Set the proxypassurl and mcpendpoint
- 6. Detect transport type
- 7. Detect auth scheme
- 8. Save the output
- 9. Validate the generated JSON
- 10. Report results
- Reference: Minimal server card
- Reference: Full server card with tools
python3 -c " import json import sys file_path = '<OUTPUT_FILE_PATH>' Step 1: JSON format check with open(file_path) as f: card = json.load(f) except json.JSONDecodeError as e: Step 2: Required fields errors = []
What does the generate-server-card skill do?
Generate an MCP server card JSON (mcp-gateway-registry format) by analyzing server source code in a folder or GitHub URL. Studies code to detect server name, tools, transport, auth, and generates a registry-compatible config.
How do I install it?
Run `npx skills add agentic-community/mcp-gateway-registry --skill generate-server-card --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From agentic-community/mcp-gateway-registry, a repository with 845 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
