Giphy
    Giphy

    Giphy

    An implementation of Giphy integration with Model Context Protocol

    4.3

    GitHub Stats

    Stars

    11

    Forks

    4

    Release Date

    6/4/2025

    about a month ago

    Detailed Description

    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

    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.

    About the Project

    This app has not been claimed by its owner yet.

    Claim Ownership

    Receive Updates

    Security Updates

    Get notified about trust rating changes

    to receive email notifications.