soap-api-gateway
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@soap-api-gatewayWhat operations does my SOAP service have?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🛰 Hybrid SOAP→REST Gateway (Async + Cache + MCP + FastAPI)
A production‑grade gateway that:
Converts SOAP WSDL services into a REST‑style interface.
Runs FastAPI HTTP API and MCP server as separate processes in the different containers.
Supports WS‑Security UsernameToken authentication from
.env.Caches raw WSDL XML and fully processed WSDL (Zeep client, docs, examples).
Allows manual cache clear and manual processed WSDL refresh via HTTP or MCP.
Uses
.envfor environment‑specific configuration.
📂 Project Structure
.
├── soap_gateway.py # Shared SOAP→REST logic
├── fastapi_app.py # FastAPI HTTP API
├── mcp_server.py # MCP server
├── requirements.txt # Python dependencies
├── Dockerfile # Container build instructions
├── docker-compose.yml # docker compose file
├── .env # Environment variables
└── README.md # This fileRelated MCP server: mcp2ws
🚀 Features
Dual‑process: FastAPI and MCP run independently — no blocking.
Async‑ready: Core functions can be adapted for async.
Caching:
Raw WSDL XML
Fully processed WSDL (Zeep client, operation docs, element docs)
Clear cache:
/clear_cacheendpoint or MCPclear()tool.Refresh processed WSDL:
/refresh_wsdlendpoint or MCPrefresh_wsdl()tool.Dockerized: Minimal image with
supervisordmanaging both processes.Configurable health check: WSDL URL set via
HEALTHCHECK_WSDL_URLenv var.
⚙️ Environment Variables
Variable | Purpose | Default |
| WSDL URL used by health check and as default for |
|
| Username for WS‑Security UsernameToken authentication | (none) |
| Password for WS‑Security UsernameToken authentication | (none) |
| If |
|
| Port for FastAPI HTTP server |
|
📄 Example .env
HEALTHCHECK_WSDL_URL=https://dev.example.com/service?wsdl
SOAP_USERNAME=myuser
SOAP_PASSWORD=supersecret
DEBUG=true
PORT=9000🐳 Docker Deployment
docker compose up -d🛠 Usage
1. HTTP API (FastAPI)
http://localhost:9000/docs - FastAPI documentation
POST /describe— List operations and input schema.POST /invoke— Call a SOAP operation.POST /clear_cache— Flush all caches.POST /refresh_wsdl— Force rebuild of processed WSDL cache.
2. MCP Server
Tools:
describe(wsdl_url=None, operation=None, username=None, password=None)invoke(wsdl_url=None, endpoint_url, operation, params, username=None, password=None)clear()refresh_wsdl(wsdl_url=None, username=None, password=None, version="v1")
HTTP MCP transport (mounted at /mcp)
The MCP wrapper in mcp_server.py mounts an HTTP transport at /mcp by default.
When calling the HTTP MCP endpoint, send a JSON POST where tool is the tool
name and args is an object containing the tool arguments. Example payload:
{
"tool": "describe",
"args": {
"wsdl_url": "https://example.com/service?wsdl",
"operation": null,
"username": null,
"password": null
}
}The endpoint will return a JSON response containing the tool result (same shape as the internal function return values). This is useful for MCP agents that communicate over HTTP instead of stdio.
🤝 MCP Agent Configuration
Local spawn (stdio)
{
"mcpServers": {
"soap-gateway": {
"type": "stdio",
"command": "python",
"args": ["mcp_server.py"],
"env": {
"HEALTHCHECK_WSDL_URL": "https://dev.example.com/service?wsdl",
"SOAP_USERNAME": "myuser",
"SOAP_PASSWORD": "supersecret"
}
}
}
}Remote/HTTP
{
"mcpServers": {
"soap-gateway": {
"type": "http",
"url": "http://your-server-host:9010/mcp",
"env": {
"HEALTHCHECK_WSDL_URL": "https://prod.example.com/service?wsdl",
"SOAP_USERNAME": "myuser",
"SOAP_PASSWORD": "supersecret"
}
}
}
}🐳 MCP Configuration for Docker Deployment
When running inside Docker, connect over HTTP:
{
"mcpServers": {
"soap-gateway": {
"type": "http",
"url": "http://localhost:9010/mcp",
"env": {
"HEALTHCHECK_WSDL_URL": "https://dev.example.com/service?wsdl",
"SOAP_USERNAME": "myuser",
"SOAP_PASSWORD": "supersecret"
}
}
}
}❤️ Health Check
ENV HEALTHCHECK_WSDL_URL="http://example.com?wsdl"
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD curl -sf http://localhost:9000/describe \
-H "Content-Type: application/json" \
-d "{\"wsdl_url\":\"${HEALTHCHECK_WSDL_URL}\"}" || exit 1🧹 Cache Management
Automatic: Processed WSDL cache is built on first use and reused until cleared or refreshed.
Manual clear:
HTTP:
POST /clear_cacheMCP:
clear()tool
Manual refresh:
HTTP:
POST /refresh_wsdlMCP:
refresh_wsdl()tool
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAutomatically converts REST APIs with Swagger/OpenAPI documentation into MCP tools, making any documented API accessible to MCP-compatible clients. Supports authentication, SSL handling, and flexible configuration for seamless API integration.11MIT
- AlicenseCqualityDmaintenanceExposes SOAP-based web services as MCP servers by parsing WSDL files. Enables AI assistants to interact with legacy SOAP/WS-\* web services through the Model Context Protocol.214MIT
- AlicenseAqualityAmaintenanceSelf-hosted source-available MCP gateway that turns REST, SOAP/WSDL, GraphQL, and SQL/NoSQL databases into MCP tools. Imports OpenAPI/Postman/WSDL/GraphQL specs and bridges multiple MCP servers behind one endpoint. Ships with 29 pre-built adapters and built-in OAuth2 + RBAC + audit log.4176AGPL 3.0
- Alicense-qualityCmaintenanceBridges LLM clients with existing RESTful microservices by converting MCP tool calls into REST requests, enabling any REST API to be used as an MCP tool without modifying the microservices.1,388,8271MIT
Related MCP Connectors
34 production API tools over one hosted MCP endpoint.
MCP server for AI access to Swagger by SmartBear.
Search, document and execute authenticated API calls across 500+ apps via one MCP server
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wj1313677/soap-api-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server