Search for GIFs on Giphy with a query string
Get a random GIF from Giphy, optionally filtered by tag
Get currently trending GIFs on Giphy
Giphy MCP provides AI models with seamless access to Giphy's extensive GIF library. It enables searching, retrieving random GIFs, and accessing trending content with comprehensive metadata and filtering options. This integration allows AI assistants to enhance conversations with relevant animated content while maintaining appropriate content filtering.
The Giphy MCP server enables AI models to search, retrieve, and utilize GIFs from Giphy's vast library. This integration allows AI assistants to enhance conversations with relevant animated content while maintaining appropriate content filtering.
Before installing the Giphy MCP server, you need to obtain a Giphy API key:
npm install mcp-server-giphy
npx -y @smithery/cli install mcp-server-giphy --client claude
.env
file in your project directory with your Giphy API key:GIPHY_API_KEY=your_api_key_here
For Claude Desktop or other MCP-compatible clients, add the following to your configuration:
"mcpServers": {
"giphy": {
"command": "npx",
"args": ["mcp-server-giphy"]
}
}
Once installed and configured, you can use the Giphy MCP to search for and retrieve GIFs in various ways:
Use the search_gifs
tool to find GIFs based on keywords or phrases. You can control the number of results, content rating, and language.
The get_random_gif
tool retrieves a random GIF, optionally filtered by tag and content rating.
Use get_trending_gifs
to retrieve currently popular GIFs on the platform with pagination support.
All tools support content filtering through the rating
parameter:
g
: General audience (suitable for all ages)pg
: Parental guidance suggestedpg-13
: Parents strongly cautioned (may be inappropriate for children under 13)r
: Restricted (contains content suitable only for mature audiences)Each GIF in the response includes:
For containerized environments, you can use the provided Dockerfile:
docker build -t mcp-server-giphy .
docker run -e GIPHY_API_KEY=your_api_key_here -p 3000:3000 mcp-server-giphy