Cover image
Try Now
2025-03-21

Eine Implementierung der GIPHY -Integration in das Modellkontextprotokoll

3 years

Works with Finder

1

Github Watches

1

Github Forks

7

Github Stars

MCP Server Giphy

smithery badge 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

Installing via Smithery

To install mcp-server-giphy for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-server-giphy --client claude

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

# 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

License

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.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

    Reviews

    5 (1)
    Avatar
    user_Loik0Mus
    2025-04-17

    As an avid user of mcp applications, I must say mcp-server-giphy by magarcia is a fantastic addition. The seamless integration with Giphy allows for a fun and dynamic user experience, and the setup is straightforward thanks to the clear documentation. This has become a go-to resource for adding gifs to my server setups. Highly recommended!