Skip to main content
Glama
MCP Server Giphy

MCP Server Giphy

by magarcia

MCP Server Giphy

CI npm version npm downloads License: MIT

MCP Server for the Giphy API, enabling AI models to search, retrieve, and utilize GIFs from Giphy.

Features

  • Content Filtering: Filter results by rating (G, PG, PG-13, R) to ensure appropriate content

  • Optimized Response Format: Response data optimized for AI model consumption

  • Multiple Search Methods: Support for query-based, random, and trending GIF retrieval

  • Comprehensive Metadata: Each GIF comes with full metadata including dimensions, formats, and attribution

  • Pagination Support: Control result size and pagination for efficient API use

Tools

  1. search_gifs

    • Search for GIFs on Giphy with a query string

    • Inputs:

      • query (string): Search query term or phrase

      • limit (optional number): Maximum number of objects to return (default: 10, max: 50)

      • offset (optional number): Results offset (default: 0)

      • rating (optional string): Content rating (g, pg, pg-13, r)

      • lang (optional string): Language code (default: en)

    • Returns: Array of GIF objects with metadata

  2. get_random_gif

    • Get a random GIF from Giphy, optionally filtered by tag

    • Inputs:

      • tag (optional string): Tag to limit random results

      • rating (optional string): Content rating (g, pg, pg-13, r)

    • Returns: Random GIF object with metadata

  3. get_trending_gifs

    • Get currently trending GIFs on Giphy

    • Inputs:

      • limit (optional number): Maximum number of objects to return (default: 10, max: 50)

      • offset (optional number): Results offset (default: 0)

      • rating (optional string): Content rating (g, pg, pg-13, r)

    • Returns: Array of trending GIF objects with metadata

Related MCP server: Giphy MCP Server

Response Format

Each GIF in the response includes:

  • id: Unique Giphy identifier

  • title: GIF title

  • url: URL to the GIF on Giphy website

  • images: Object containing various image formats, each with:

    • url: Direct URL to the image file

    • width: Image width

    • height: Image height

  • Additional metadata when available

Setup

Giphy API Key

Create a Giphy API Key:

  • Sign up for a Giphy Developer account

  • Create an app to get an API key

  • Choose between the free tier or paid options based on your needs

Environment Configuration

Create a .env file with your API key:

GIPHY_API_KEY=your_api_key_here

Usage with Claude Desktop

To use this with Claude Desktop, add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "giphy": {
      "command": "npx",
      "args": ["-y", "mcp-server-giphy"],
      "env": {
        "GIPHY_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Development

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm start

# Run in development mode with hot reloading
npm run dev

# Run tests
npm test

# Use with MCP Inspector
npm run inspector

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Available Tools

3 tools
get_random_gifA

Get a random GIF from Giphy, optionally filtered by tag

Inputs: tag, rating.

search_gifsC

Search for GIFs on Giphy with a query string

Inputs: query (required), limit, offset, rating, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_random_gif retrieves a single random GIF, get_trending_gifs fetches trending content, and search_gifs performs query-based searches. There is no overlap in functionality, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with 'get' or 'search' verbs and descriptive nouns (random_gif, trending_gifs, gifs). The naming is uniform and predictable across the set.

    Tool Count5/5

    With 3 tools, the server is well-scoped for its purpose of accessing Giphy content. Each tool serves a distinct and essential function (random, trending, search), and there are no extraneous or missing tools for this domain.

    Completeness5/5

    The tool surface covers the core workflows for a Giphy API: retrieving random GIFs, accessing trending content, and searching by query. This provides complete coverage for typical use cases without obvious gaps or dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      This is an auto-generated Multi-Agent Conversation Protocol server that enables interaction with the Giphy API, allowing users to access and use Giphy's GIF services through natural language commands.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP (Multi-Agent Conversation Protocol) Server that enables interaction with the Giphy API, allowing agents to search, retrieve, and manage GIF animations through natural language commands.
      -
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP (Multi-Agent Conversation Protocol) Server that enables interaction with the Giphy API, allowing users to search, retrieve, and manipulate GIF content through natural language commands.
      -