Connect Swaggerhub to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the get standardization results tool in Swaggerhub
Use the get comments tool in Swaggerhub
Use the save domain definition tool in Swaggerhub
Use the get api definition tool in Swaggerhub
Use the manage integrations tool in Swaggerhub
Use the manage projects tool in Swaggerhub
Supported Tools
run_standardization
Get Standardization Results
Retrieve standardization results for an API definition in SwaggerHub. Returns validation issues and their locations to help review compliance before publishing. Standardization requires an eligible organization plan.
get_comments
Get Comments
Retrieve all comments and replies on a specific API or domain version in SwaggerHub. Useful for reviewing team feedback, design discussions, and review workflows around API specifications.
save_domain_definition
Save Domain Definition
Create or update a domain definition in SwaggerHub. Domains are reusable components (models, parameters, responses) that can be shared across multiple API definitions. Provide the definition in YAML format.
get_api_definition
Get API Definition
Inspect an API definition in SwaggerHub, or list its versions. Returns the specification for a given version and the default version when available. Use download_definition to get a downloadable file.
manage_integrations
Manage Integrations
List, inspect, create, update, delete, or execute integrations on an API version in SwaggerHub. Integrations connect SwaggerHub to external tools like GitHub, GitLab, Bitbucket, AWS API Gateway, and more. Use the **action** field to specify the operation.
manage_projects
Manage Projects
List, create, update, or delete projects in SwaggerHub. Projects organize APIs and domains into logical groups for better team-level access control. You can also add APIs or domains to existing projects.
delete_domain
Delete Domain
Delete a domain or a specific domain version from SwaggerHub. When a version is specified, only that version is removed. When no version is specified, the entire domain and all its versions are deleted.
delete_api
Delete API
Delete an API or a specific API version from SwaggerHub. When a version is specified, only that version is removed. When no version is specified, the entire API and all its versions are deleted.
get_collaboration
Get API Collaborators
Retrieve the collaboration settings and list of collaborators for an API in SwaggerHub. Shows who has access to the API and their roles.
search_apis_and_domains
Search APIs & Domains
Search the SwaggerHub catalog for APIs and domains. Supports filtering by type (API or domain), visibility, published state, owner, and free text query. Returns paginated results with metadata including name, owner, description, and links.
update_api_settings
Update API Settings
Update settings for an API in SwaggerHub. Supports changing the default version, publishing/unpublishing a version, setting visibility (public/private), and renaming the API. Multiple settings can be updated in a single call.
get_domain_definition
Get Domain Definition
Retrieve a domain definition from SwaggerHub. Domains contain reusable components (models, parameters, responses) shared across APIs. Returns the definition for a specific version, or lists available versions if no version is specified.
save_api_definition
Save API Definition
Create or update an API definition in SwaggerHub. Provide the full OpenAPI or AsyncAPI specification in YAML format. Optionally set the version, visibility, and OAS version.
download_definition
Download Definition
Download an API or domain definition from SwaggerHub as a YAML or JSON file. API downloads can resolve external references or flatten schemas.
clone_definition_version
Clone Definition Version
Create a new API or domain version by copying an existing SwaggerHub version. Use this to start editing a new version while preserving a published definition.
Enable Swaggerhub in Metorial. In your Metorial portal, enable the Swaggerhub MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Swaggerhub tools.
Enable Swaggerhub in Metorial. In your Metorial portal, enable the Swaggerhub MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Swaggerhub tools.
Enable Swaggerhub in Metorial. In your Metorial portal, enable the Swaggerhub MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Swaggerhub tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Swaggerhub in Metorial. In your Metorial portal, enable the Swaggerhub MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Swaggerhub tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Swaggerhub in Metorial. In your Metorial portal, enable the Swaggerhub MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Swaggerhub tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Swaggerhub through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Swaggerhub and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Swaggerhub tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
Create, retrieve, update, and delete API definitions (OpenAPI and AsyncAPI) and reusable domains in SwaggerHub's centralized registry. Manage API versions, visibility, and publishing status. Search the public and private API catalog for APIs and domains. Retrieve collaboration comments and replies on API specifications. Configure and trigger integrations with external tools like GitHub, GitLab, AWS API Gateway, and CI/CD systems. Organize APIs and domains into projects with team-level access control. Generate client SDKs and server stubs in 30+ languages. Manage organization members, roles, and permissions. Run standardization scans to validate API definitions against style guides and governance rules. Configure webhooks to receive notifications when API versions are saved or published.
Frequently asked questions
Common questions about connecting Swaggerhub to AI agents with Metorial.
How many tools does the Swaggerhub MCP server have?
The Swaggerhub MCP server exposes 15 tools, including Get Standardization Results, Get Comments, Save Domain Definition. Each one is governed and traced through Metorial.
Does the Swaggerhub MCP server support triggers?
Swaggerhub exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Swaggerhub MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Swaggerhub MCP server through the same Metorial URL.
How do I give only some teams access to Swaggerhub?
Use role-based access control to decide which teams, users, and agents can use Swaggerhub and which of its tools they can call.
Can I self-host the Swaggerhub MCP server?
Yes. Metorial is open source, so you can run the Swaggerhub MCP server yourself or use the hosted gateway.
Connect Swaggerhub to production AI agents
See how Metorial gives your team governed access to Swaggerhub, with tracing and security controls built in.