Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.43.1
metadata
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:
- Try Real APIs: Test with CoinGecko, GitHub, or JSONPlaceholder
- Explore Features: Test different HTTP methods and authentication
- See Error Handling: Try invalid URLs to see robust error responses
- 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:
{
"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 π