Install
$ agentstack add mcp-deepwissen-mcp-rest-adapter β scanned Β· β verified, works with Claude Code, Cursor, and more.
Security review
β PassedNo issues found. Passed automated security review. Β· v0.1.0 How review works β
- β Prompt-injection patterns
- β Secret / credential exfiltration
- β Dangerous shell & filesystem operations
- β Untrusted network calls
- β Known-malicious package signatures
What it can access
- β Network access Used
- β Filesystem access No
- β Shell / process execution No
- β Environment & secrets No
- β Dynamic code execution No
From automated source analysis of v0.1.0. βUsedβ means the capability is present in the source β more access means more to trust, not that itβs unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work βAbout
MCP β REST Adapter
Make your existing REST APIs instantly accessible to AI agents (Claude, GPT-4, etc.) without changing a single line of code.
π Quick Start (5 minutes)
# Clone the repository
git clone https://github.com/deepwissen/mcp_rest_adapter.git
cd mcp_rest_adapter
# Start everything with one command
./quick_start.sh
That's it! Your REST APIs are now AI-accessible. Test it:
curl -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "tools/list", "params": {}, "id": 1}'
π― What This Does
The MCP Adapter acts as a bridge between AI agents and your existing microservices:
AI Agent (Claude/GPT) β MCP Protocol β MCP Adapter β Your REST APIs
Before: Months of custom AI integration code After: 5 minutes to AI-enable your entire API ecosystem
π οΈ Manual Setup
Prerequisites
- Docker & Docker Compose
- Python 3.11+
- Your REST APIs with OpenAPI/Swagger specs
Step 1: Configure Your Services
Edit docker-compose.yml to point to your services:
environment:
- CUSTOMER_SERVICE_URL=http://your-customer-api:8080
- ORDER_SERVICE_URL=http://your-order-api:8080
- INVENTORY_SERVICE_URL=http://your-inventory-api:8080
Step 2: Start the Adapter
# Start with Docker Compose
docker-compose up -d
# Or run directly with Python
pip install -r requirements.txt
python -m uvicorn mcp_adapter.server:app --port 8000
Step 3: Verify It's Working
# Check health
curl http://localhost:8000/health
# List available tools (auto-generated from your APIs)
curl -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "tools/list", "params": {}, "id": 1}'
π Requirements for Your APIs
Your REST APIs need:
- Health endpoint (
/health) that returns 200 OK - OpenAPI spec (
/openapi.jsonor/swagger.json) - Standard REST patterns (GET, POST, PUT, DELETE)
That's it. No code changes required.
π§ Configuration
Create a config.py file:
SERVICE_CONFIGS = {
"customer": {
"base_url": "http://customer-service:8001",
"health_endpoint": "/health",
"openapi_endpoint": "/openapi.json"
},
"order": {
"base_url": "http://order-service:8002",
"health_endpoint": "/health",
"openapi_endpoint": "/openapi.json"
}
}
π§ͺ Testing
Run the test suite:
# Run all tests
./run_tests.py
# Run with Docker
docker-compose -f docker-compose.test.yml up
π What You Get
Once running, AI agents can:
- Discover all your API endpoints automatically
- Call any endpoint with proper parameters
- Handle complex workflows across multiple services
- Get structured responses in MCP format
Example: An AI agent can now say "Show me all orders for customer John Doe" and automatically:
- Search for the customer
- Get their customer ID
- Fetch all orders
- Return formatted results
π¨ Troubleshooting
Services not discovered?
- Check your services have
/healthendpoints returning 200 OK - Verify
/openapi.jsonis accessible
No tools generated?
- Ensure your OpenAPI spec is valid
- Check logs:
docker-compose logs mcp-adapter
Connection errors?
- Verify network connectivity between adapter and your services
- Check service URLs in configuration
π€ Contributing
We welcome contributions! Please check out our [Contributing Guide](CONTRIBUTING.md).
π License
MIT License - see [LICENSE](LICENSE) file for details.
π Links
Built with β€οΈ to make AI integration simple
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source β we do not rehost the code.
- Author: deepwissen
- Source: deepwissen/mcprest_adapter
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.