A simple API testing tool that integrates with ChatGPT using OpenAI's Apps SDK. Test APIs directly in your ChatGPT conversations.
API_TESTER/
├── static/
│ ├── api-tester.css # Widget styles
│ └── api-tester.js # Widget JavaScript
├── server.py # MCP server
├── pyproject.toml # Dependencies
└── README.md
Ask ChatGPT to test any API and get instant results with a beautiful interface showing:
- Response status and timing
- Headers and JSON responses
- Error handling for failed requests
# Clone and install
git clone https://github.com/Sridevi17j/API_TESTER.git
cd API_TESTER
pip install -e .
# Start server
python server.py
Server runs on http://localhost:8000
# Install ngrok: https://ngrok.com/
ngrok http 8000
Use the HTTPS URL from ngrok (like https://abc123.ngrok.app
)
-
Enable Developer Mode:
- ChatGPT Settings → Apps & Connectors → Advanced Settings
- Turn on "Developer Mode"
-
Create Connector:
- Apps & Connectors → "Create new connector"
- Enter your URL:
https://your-ngrok-url.ngrok.app/mcp
- Save
-
Test It: Ask ChatGPT: "Test the GitHub API for user openai"
Deploy to any platform that supports Python. Popular options:
- Go to Render Dashboard
- Click "New" → "Web Service"
- Connect your GitHub repo:
Sridevi17j/API_TESTER
- Configure:
Environment: Python 3 Build Command: pip install -e . Start Command: python server.py
Your service will be at: https://your-service-name.onrender.com
Use your production URL: https://your-service-name.onrender.com/mcp
- Enable Developer Mode in ChatGPT Settings
- Create Connector with your production URL
- Start testing APIs in ChatGPT
Ask ChatGPT:
- "can you test - https://countriesnow.space/api/v0.1/countries"
ChatGPT will call your API Tester and display results in an interactive widget.