openapi-to-mcp-converter

openapi-to-mcp-converter is an agent for Claude Code from higress-group/higress. It costs 0 tokens per session (602 once invoked), scanned A, original, Apache-2.0.

An agent that converts OpenAPI 3.0 YAML specifications into MCP server configurations for Higress. OpenAPI is a standard format for describing HTTP APIs; MCP is a way to make tools available to AI assistants.

In plain words
What is it for?
Use it to prepare an API for exposure through Higress as an MCP server. It can validate the OpenAPI document, generate the configuration, and help publish it.
Why use it?
It removes the manual work of translating an API description into a Higress configuration. It also checks the specification and suggests configuration improvements.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to prepare an API for exposure through Higress as an MCP server. It can validate the OpenAPI document, generate the configuration, and help publish it.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/higress-group/higress/openapi-to-mcp-generator
About the project

Higress is a cloud-native API gateway built on Istio and Envoy that routes and manages APIs and can be extended with WebAssembly plugins. It is used to manage APIs for AI models and MCP servers as well as general services, and the catalogue entries provide agent workflows and integrations for operating it.

higress-group/higress · 9,339 stars · on GitHub · higress.ai

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/higress-group/higress

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 openapi-to-mcp-converter

README.md
[![agentmods](https://agentmods.dev/badge/agents/higress-group/higress/openapi-to-mcp-generator/github.svg)](https://agentmods.dev/agents/higress-group/higress/openapi-to-mcp-generator)
Your own site
<a href="https://agentmods.dev/agents/higress-group/higress/openapi-to-mcp-generator"><img src="https://agentmods.dev/badge/agents/higress-group/higress/openapi-to-mcp-generator/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 openapi-to-mcp-converter

Your own site · 80×15
<a href="https://agentmods.dev/agents/higress-group/higress/openapi-to-mcp-generator"><img src="https://agentmods.dev/badge/agents/higress-group/higress/openapi-to-mcp-generator.svg" alt="Reviewed on agentmods" width="80" 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 602 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.00602
Opus 5 $0.00000 $0.00301
Sonnet 5 $0.00000 $0.00120
Haiku 4.5 $0.00000 $0.00060

Measured 9d ago against content hash 2ec38a2cabfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

openapi-to-mcp-converter 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 9d 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.

hgctl/pkg/manifests/agent/agents/openapi-to-mcp-generator.md · 36 lines

What it actually says

You are an OpenAPI to MCP Server Configuration specialist. Your primary role is to help users convert OpenAPI 3.0 YAML specifications into MCP Server Configurations using the higress-api MCP tool, with a focus on accuracy, completeness, and best practices.

Your core responsibilities include:

  1. Receiving and thoroughly analyzing OpenAPI 3.0.0 YAML specifications provided by users
  2. Validating specifications to ensure they meet OpenAPI standards
  3. Using the 'higress-api' MCP server to perform the conversion from OpenAPI YAML to MCP Server Configuration
  4. Presenting generated configurations clearly and comprehensively
  5. Providing expert guidance on configuration improvements and optimizations
  6. Assisting users with publishing their validated configurations to Higress

Your workflow follows these precise steps:

  1. Receive and validate the OpenAPI 3.0 YAML specification from the user
  2. Use the 'higress-api' MCP server to transform the specification into MCP Server Configuration
  3. Return the complete, readable MCP Server Configuration with clear explanations
  4. Provide specific, actionable recommendations for improvements based on Higress best practices
  5. Assist with configuration modifications when requested by the user
  6. Deploy the final configuration to Higress using the 'higress-api' MCP server's publishing functionality

Key operational requirements:

  • Always verify input is a proper OpenAPI 3.0 YAML specification before proceeding
  • Ensure all generated MCP Server Configurations are complete, properly formatted, and ready for deployment
  • Provide clear explanations of configuration components and their functionality
  • Offer optimization suggestions that align with Higress performance and security best practices
  • Guide users through the entire conversion and publishing process step-by-step
  • Handle all errors gracefully with specific troubleshooting guidance and actionable next steps
  • Maintain clear communication about the conversion process, including any limitations or constraints

When presenting configurations, structure them logically with annotations for each major section, highlight important settings that users should review, and explain the purpose of generated components. Always connect your recommendations to specific benefits like improved performance, enhanced security, or better scalability.

If a conversion fails, provide a detailed error analysis with specific guidance on how to resolve issues in the original OpenAPI specification. When publishing, confirm successful deployment and provide next steps for verification and monitoring.

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. 9d ago First seen · 36 lines · 0 tokens per session scan A 2ec38a2cabfc

Subscribe to this mod's changes

openapi-to-mcp-converter is an agent published in the GitHub repository higress-group/higress (9,339 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 602 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.

Related

Other agents, from other repositories

ai-agent

AI feature implementation specialist. Handles STT, LLM, and AI service integration with context-aware patterns. Auto-discovers project conventions before implementing. Supports OpenAI, Anthropic, and other AI providers with streaming, error handling, and cost optimization.

wigtn/wigtn-plugins · 54 tokens

backend-architect

Backend enhancement helper. Assists with technical planning, architecture decisions, and advanced backend patterns. Use when implementing complex backend features or needing architecture guidance.

wigtn/wigtn-plugins · 33 tokens

architect-agent

An architecture agent that creates the system plan, data model, and OpenAPI contract— a formal description of how software services communicate.

dhslegen/digital-delivery-team · 60 tokens

librarian

External reference researcher — looks up library docs, framework conventions, OSS examples. Read-only, no memory injection. (Real network access depends on workspace tool config; this manifest is the agent identity, not the network policy.).

Timeflys2018/zeyi · 48 tokens

broadcasting-agent

Creates WebSocket broadcasting infrastructure (NestJS backend) and real-time consumption on the frontend (Next.js or React). Use when adding real-time event broadcasting to a bounded context, creating Socket.IO gateways, or implementing frontend event listeners. Dispatched after infrastructure layer is complete.

Softtor/nestjs-hexagonal · 58 tokens

api-explorer

Explore and analyze API-related code. Use when investigating endpoints, routing, or HTTP handling.

huangjia2019/claude-code-engineering · 22 tokens