GIPHY Integration
STDIOModel Context Protocol server integration with GIPHY API for retrieving images based on context.
Model Context Protocol server integration with GIPHY API for retrieving images based on context.
This project implements a Model Context Protocol (MCP) server integration with the GIPHY API. The server allows an assistant to submit recent chat history ('context') and a search term to retrieve a list of candidate results from GIPHY and load their image data.
Simply run:
make
To create the virtual environment and install dependencies.
Use the VSCode launch configuration, or run manually:
Defaults to stdio transport:
uv run -m mcp_server.start
For SSE transport:
uv run -m mcp_server.start --transport sse --port 6020
The SSE URL is:
http://127.0.0.1:6000/sse
To use this MCP server in your setup, consider the following configuration:
{ "mcpServers": { "giphy-server": { "command": "uv", "args": ["run", "-m", "mcp_server.start"], "env": { "GIPHY_API_KEY": "YOUR_GIPHY_API_KEY" } } } }
{ "mcpServers": { "giphy-server": { "command": "http://127.0.0.1:6000/sse", "args": [] } } }
Ensure that GIPHY_API_KEY
is set in your environment so that the server can authenticate with the GIPHY API.