Skip to main content

An MCP server for integrating Giphy into AI agents.

Project description

Giphy MCP Server

CI PyPI version

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

Installation

For general use, install the package via pip:

pip install giphy-mcp

For development:

  1. Clone the repository:
    git clone https://github.com/Szatek/giphy-mcp-server.git
    cd giphy-mcp-server
    
  2. 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:

  1. Creating a .env file in the project root:
    GIPHY_API_KEY=your_api_key_here
    
  2. 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:

celebratory GIF"

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

giphy_mcp-0.1.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

giphy_mcp-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file giphy_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: giphy_mcp-0.1.1.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

Hashes for giphy_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 66cef721065e9772fc813c8b27cd4d10d8fed10a31cda9534c91ab642de1543d
MD5 b4b7910a49e46089d992ca7774fb6504
BLAKE2b-256 1ced7c584985d7975d9af6e926eeb83fefad0efeb41ab164b7a306802d804e2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for giphy_mcp-0.1.1.tar.gz:

Publisher: publish.yml on Szatek/giphy-mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file giphy_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: giphy_mcp-0.1.1-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

Hashes for giphy_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ade075f70a2b8ec1cfb987381553e65b1eb0304c562ce1c37a301adf99ca179b
MD5 a0539f5008c257ccf81dc5abe72da152
BLAKE2b-256 281903b02613e6db4313ff568103077591222796fa99bae198160fb50dba7572

See more details on using hashes here.

Provenance

The following attestation bundles were made for giphy_mcp-0.1.1-py3-none-any.whl:

Publisher: publish.yml on Szatek/giphy-mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page