An MCP server for integrating Giphy into AI agents.
Project description
Giphy MCP Server
An MCP (Model Context Protocol) server that allows AI agents to search and retrieve GIFs using the Giphy API. This provides a rich way for agents to express humor, reactions, or find relevant visual context.
Prerequisites
- Python 3.10+
- A Giphy API Key. You can get a free API key at the Giphy Developer Portal.
Installation
For general use, install the package via pip:
pip install giphy-mcp
For development:
- Clone the repository:
git clone https://github.com/Szatek/giphy-mcp-server.git cd giphy-mcp-server
- Create a virtual environment and install in editable mode:
python -m venv venv # On Windows .\venv\Scripts\activate # On Linux/macOS source venv/bin/activate pip install -e ".[dev]"
Configuration
The server requires a Giphy API Key to function. It reads this from the GIPHY_API_KEY environment variable.
You can configure this by:
- Creating a
.envfile in the project root:GIPHY_API_KEY=your_api_key_here
- Or by passing it directly via your MCP client's configuration.
Available Tools
search_gifs- Description: Search for GIFs using the Giphy API.
- Parameters:
query(string): The search term to find GIFs for.limit(int, optional): The maximum number of GIFs to return (default: 5).rating(string, optional): Filters results by specified rating (default: 'g').
Example Use Case (Agent Interaction)
When this server is registered with an AI agent (like Claude Desktop or Cursor), the agent can autonomously use it to attach GIFs to its responses.
User: "Can you celebrate that we finally deployed to production?"
Agent (Internal Thought): The user wants to celebrate. A celebratory GIF would be perfect here. I will use the search_gifs tool with the query "celebrate".
Agent (Tool Call):
{
"name": "search_gifs",
"arguments": {
"query": "celebrate",
"limit": 1
}
}
Agent (Response): "Woohoo! That's awesome news! Here's a celebratory GIF to match the mood:
"
Using with MCP Clients
To use this with an MCP client like Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"giphy": {
"command": "giphy-mcp",
"args": [],
"env": {
"GIPHY_API_KEY": "your_api_key_here"
}
}
}
}
Note: You may need to specify the absolute path to the giphy-mcp executable if it's not in your system's PATH.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file giphy_mcp-0.1.3.tar.gz.
File metadata
- Download URL: giphy_mcp-0.1.3.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48c51ad3f47fe7d7cbfd68851a3eb214c162af721b114182c656a445c1a23805
|
|
| MD5 |
2c777837f6b588a50701b0fa503be1ed
|
|
| BLAKE2b-256 |
8e91fa31acdf0a5dc578d605dea0a780cde2354268ae8accda2143715ca00b28
|
Provenance
The following attestation bundles were made for giphy_mcp-0.1.3.tar.gz:
Publisher:
publish.yml on Szatek/giphy-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
giphy_mcp-0.1.3.tar.gz -
Subject digest:
48c51ad3f47fe7d7cbfd68851a3eb214c162af721b114182c656a445c1a23805 - Sigstore transparency entry: 1004322839
- Sigstore integration time:
-
Permalink:
Szatek/giphy-mcp-server@6076e11ed4d1bffe69469bf027eb3e927a4c922f -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Szatek
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6076e11ed4d1bffe69469bf027eb3e927a4c922f -
Trigger Event:
release
-
Statement type:
File details
Details for the file giphy_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: giphy_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4191462c31205d4b9750e09d8fb0e53a232c7e6dace2cd9f508ca8715274ed3c
|
|
| MD5 |
78818a492c8d54516dac2613b466db1d
|
|
| BLAKE2b-256 |
9da894d62386651676287ceda854cf77a901c9f7953245798f3e93583357f12c
|
Provenance
The following attestation bundles were made for giphy_mcp-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on Szatek/giphy-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
giphy_mcp-0.1.3-py3-none-any.whl -
Subject digest:
4191462c31205d4b9750e09d8fb0e53a232c7e6dace2cd9f508ca8715274ed3c - Sigstore transparency entry: 1004322847
- Sigstore integration time:
-
Permalink:
Szatek/giphy-mcp-server@6076e11ed4d1bffe69469bf027eb3e927a4c922f -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Szatek
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6076e11ed4d1bffe69469bf027eb3e927a4c922f -
Trigger Event:
release
-
Statement type: