- OpenAPI 3.x
- Swagger 2.0
Import methods
You can import an API specification in three ways:File
Upload a.json, .yaml, or .yml file up to 10 MB.
URL
Import from a publicly accessiblehttp:// or https:// URL.
The URL must return the OpenAPI document directly without requiring a browser login.
Paste
Paste the complete OpenAPI document directly into the editor.What happens during import?
Before importing, 0mcp analyzes your specification and displays a preview showing:- OpenAPI version
- Server URL
- Available API operations
- Choose which operations become MCP tools
- Review generated tool names
- Improve tool descriptions before creating your server
Writing a high-quality OpenAPI specification
The quality of your MCP server depends on the quality of your OpenAPI document. For the best experience:- Give every operation a unique
operationId. - Write clear summaries and descriptions.
- Define request parameters and request bodies accurately.
- Configure authentication using OpenAPI security schemes.
- Document response schemas.
- Ensure the server URL points to the correct upstream API.
Best practices
- Use stable, descriptive
operationIdvalues, such asget_orderinstead ofget1. - Write descriptions that explain what an operation does and when it should be used.
- Remove deprecated or internal endpoints before exposing them to AI clients.
- Keep your OpenAPI specification up to date as your API evolves.