Short answer: WSO2 API Manager can create an MCP server three ways: from an OpenAPI definition, from an API it already manages, or by proxying an existing MCP server. Agents then reach it through the gateway, which applies security, throttling and analytics. The MCP gateway arrived in release 4.6 and MCP governance and analytics in 4.7. Checked November 24, 2026 against the 4.6 documentation and a 4.7 page on moving MCP servers between environments.
How do I create an MCP server in API Manager?
The labels below come from the 4.6.0 documentation. In the Publisher, open MCP Servers, then choose one of the three paths.
| Step | From an existing API | Proxy an existing MCP server |
|---|---|---|
| Start | MCP Servers, then Create MCP Server from Existing API | MCP Servers, then Proxy an Existing MCP Server |
| Input | Pick a source API that is already deployed | Choose MCP Server URL and enter the upstream endpoint |
| Tools | Select which API operations become tools | API Manager discovers the upstream tools. Select which to expose |
| Details | Name, context and version, then Create | Name, context, version and the upstream base URL, then Create |
| After | Refine tool names and descriptions, test in the MCP Playground, deploy to a gateway | The same |
| Carries over | The API's existing security, throttling and analytics | Policies for authentication, throttling and analytics can be applied |
When you proxy a server, API Manager does not generate tools. It discovers the upstream tools and proxies MCP methods such as initialize, tools/list and tools/call. It assumes the upstream server follows the MCP standard. The documentation page for this path does not cover authentication inputs or transport selection.
Should we expose every API operation as a tool?
No. The overview warns that converting an API straight into an MCP server works for small deployments but does not scale. Exposing every resource as its own tool uses up the model's context window and raises the risk of invented calls. The recommended approach is to design servers around specific workflows, with small, strongly typed input schemas.
| Design choice | Do | Avoid |
|---|---|---|
| Tool count | A short list built around one workflow | One tool per API resource |
| Input schema | Minimal and strongly typed | Free-text fields that pass through to the backend |
| Names and descriptions | Clear, reviewed on every change | Copying the API's internal names |
| Write operations | A separate server or scope for them | Mixing read and write in one tool |
Generate MCP from APIs
| Path | Use it when |
|---|---|
| Import an OpenAPI definition | You design the MCP server first. |
| Create from an existing API | The API is already in API Manager and you want to reuse its security and throttling. You pick the operations that become tools. |
| Proxy an existing MCP server | You want governance, security and analytics around a server someone else runs. |
Guardrails
Tool descriptions steer a model, so treat them as policy. Keep the set of tools small, and review a description whenever it changes. The gateway's semantic tool filtering ranks tools by relevance so the model sees fewer of them, which reduces exposure but is not an access control.
Access
Give each agent its own identity and decide which agent may call which tool. Put one scope on each tool. For the threats and controls in detail, see the checklist.
Logging
Log agent, user, server, tool and decision for every call, allowed or denied. Use the 4.7 analytics for usage and keep the raw log for audit.
What to log for each call
| Field | Why you want it |
|---|---|
| Agent identity | Shows which agent acted, not only which application |
| User, if the agent acts for one | Ties the action to a person for audit |
| Server and tool | Shows what was reached |
| Scope used | Shows whether the call stayed within its grant |
| Decision and reason | Allowed or denied, and by which policy |
| Time and correlation ID | Lets you follow one request across systems |
A rollout checklist
- Pick one workflow and list the three to five operations an agent needs for it.
- Create the server from the existing API, or proxy the upstream server, and expose only those tools.
- Rewrite tool names and descriptions, then test them in the MCP Playground.
- Attach authentication and throttling policies, and give each tool one scope.
- Deploy to a gateway and subscribe a test agent with its own identity.
- Check the log for an allowed call and a denied call.
- Review the tool descriptions again whenever the API changes.
Questions we hear
Can we proxy a server another team runs? Yes, if it follows the MCP standard. The proxy adds governance, security and analytics around it, and the owner stays responsible for the server itself.
Does the proxy replace the server's own authorization? No. Treat the gateway as one control. The protocol rules in MCP authentication with OAuth still apply to every server behind it.
A first engagement
Duczer East offers an MCP gateway fit check: we choose the first workflow with you, design the tool set and policies, and test it in a lab before anything reaches production.



