CoolFace
Apppublic

jomasego/universal-api-agent-tool

sourceHugging Facemitupdated 1y agoView on Hugging Face
1likes
App README

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. 1.Try Real APIs: Test with CoinGecko, GitHub, or JSONPlaceholder
  2. 2.Explore Features: Test different HTTP methods and authentication
  3. 3.See Error Handling: Try invalid URLs to see robust error responses
  4. 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 ๐Ÿ†