SuperAPIAI Directory

mcp-server-giphy

github.com · AI developer platforms

Search and retrieve GIFs through the Giphy API.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Purpose

MCP Server Giphy is a Model Context Protocol (MCP) server implementation of the Giphy API, enabling AI models to search, retrieve, and utilize GIF animations on the Giphy platform. It connects Giphy's GIF retrieval capabilities to AI applications that support MCP, allowing models to directly invoke GIF content in conversations or tasks.

Main Capabilities

  • Content Filtering: Results can be filtered by rating (G, PG, PG-13, R) to ensure content appropriateness.
  • AI-Oriented Response Format: Response data is optimized for consumption by AI models.
  • Multiple Search Methods: Supports three ways of retrieving GIFs: based on query, random, and trending.
  • Complete Metadata: Each GIF comes with complete metadata, including dimensions, format, and attribution information.
  • Pagination Support: The number of returned results and the pagination offset can be controlled, facilitating efficient use of the API.

Tools and Input Parameters

search_gifs

Search for GIFs on Giphy by query string.

Input:

  • query (string): Search keyword or phrase
  • limit (optional number): Maximum number of returned objects (default 10, maximum 50)
  • offset (optional number): Result offset (default 0)
  • rating (optional string): Content rating (g, pg, pg-13, r)
  • lang (optional string): Language code (default en)

Returns: An array of GIF objects with metadata.

get_random_gif

Retrieve a random GIF from Giphy, optionally filtered by tag.

Input:

  • tag (optional string): Tag used to restrict random results
  • rating (optional string): Content rating (g, pg, pg-13, r)

Returns: A random GIF object with metadata.

get_trending_gifs

Retrieve Giphy's current trending GIFs.

Input:

  • limit (optional number): Maximum number of returned objects (default 10, maximum 50)
  • offset (optional number): Result offset (default 0)
  • rating (optional string): Content rating (g, pg, pg-13, r)

Returns: An array of trending GIF objects with metadata.

Response Format

Each GIF in the response contains:

  • id: Giphy unique identifier
  • title: GIF title
  • url: The GIF's URL on the Giphy website
  • images: An object containing multiple image formats, each format containing:
    • url: Direct URL of the image file
    • width: Image width
    • height: Image height
  • Other additional metadata when available

Usage

Obtaining a Giphy API Key

  1. Register a Giphy developer account
  2. Create an application to obtain an API Key
  3. Choose between the free tier or paid options according to your needs

Environment Configuration

Create a .env file and fill in the API Key.

Using in Claude Desktop

When using this server with Claude Desktop, add the corresponding configuration in claude_desktop_config.json.

License

This MCP server uses the MIT License. This means that, subject to compliance with the terms and conditions of the MIT License, the software may be freely used, modified, and distributed. For more details, see the LICENSE file in the project repository.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools