Spaces:
Sleeping
Sleeping
title: UniversalAPIAgentTool | |
emoji: π | |
colorFrom: blue | |
colorTo: purple | |
sdk: gradio | |
sdk_version: 4.44.0 | |
app_file: app.py | |
pinned: false | |
license: mit | |
short_description: Universal MCP tool for AI agents to access any REST API | |
tags: | |
- mcp | |
- hackathon | |
- api | |
- agent | |
- universal-tool | |
- rest-api | |
- gradio | |
# UniversalAPIAgentTool π | |
**Universal MCP Tool for Agents & MCP Hackathon** | |
A powerful Gradio-based MCP server that acts as a universal gateway for AI agents to interact with any REST API on the web. | |
## π― Live Demo | |
Use this interface to test the UniversalAPIAgentTool: | |
1. **Try Real APIs**: Test with CoinGecko, GitHub, or JSONPlaceholder | |
2. **Explore Features**: Test different HTTP methods and authentication | |
3. **See Error Handling**: Try invalid URLs to see robust error responses | |
4. **MCP Integration**: This same functionality is available as an MCP tool for AI agents | |
## π€ For AI Agents | |
This tool exposes the `execute_api_call` function via MCP, enabling AI agents to access any REST API: | |
```json | |
{ | |
"tool_name": "UniversalAPIAgentTool", | |
"function_name": "execute_api_call", | |
"parameters": { | |
"base_url": "https://api.coingecko.com", | |
"endpoint": "/api/v3/simple/price", | |
"method": "GET", | |
"params": {"ids": "bitcoin", "vs_currencies": "usd"} | |
} | |
} | |
``` | |
## π Hackathon Impact | |
**Problem Solved**: AI agents were limited to pre-built API integrations | |
**Solution**: Universal access to any REST API in real-time | |
**Result**: Dramatically expanded AI agent capabilities | |
Built for the **Agents & MCP Hackathon** π | |