Spaces:
Sleeping
Sleeping
File size: 1,584 Bytes
aabb49b ba88404 aabb49b ba88404 481d18b aabb49b ba88404 aabb49b ba88404 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
---
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** π
|