An implementation of Giphy integration with Model Context Protocol
MCP Server for the Giphy API, enabling AI models to search, retrieve, and utilize GIFs from Giphy.
search_gifs
query
(string): Search query term or phraselimit
(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)get_random_gif
tag
(optional string): Tag to limit random resultsrating
(optional string): Content rating (g, pg, pg-13, r)get_trending_gifs
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)Each GIF in the response includes:
id
: Unique Giphy identifiertitle
: GIF titleurl
: URL to the GIF on Giphy websiteimages
: Object containing various image formats, each with:
url
: Direct URL to the image filewidth
: Image widthheight
: Image heightTo install mcp-server-giphy for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install mcp-server-giphy --client claude
Create a .env
file with your API key:
GIPHY_API_KEY=your_api_key_here
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>"
}
}
}
}
# 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
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.