MCP Server Giphy

by magarcia

33 stars
378 downloads
Not rated
GitHub

About

An implementation of Giphy integration with Model Context Protocol

Details

Author
magarcia
GitHub stars
33
Downloads
378
Categories
Other

- Content filtering by rating (G, PG, PG-13, R)
- Optimized response format for AI model consumption
- Query-based, random, and trending GIF retrieval
- Comprehensive metadata including dimensions, formats, and attribution
- Pagination support with configurable result size and offset

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server Giphy
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Obtain a Giphy API key from the Giphy developer dashboard, then set it as the GIPHY_API_KEY environment variable. For usage with Claude Desktop, add the server configuration to your claude_desktop_config.json with the command npx -y mcp-server-giphy and the API key. The server exposes three tools: search_gifs, get_random_gif, and get_trending_gifs.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

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

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.