Wikimedia Image Search
БесплатноДавно не обновлялся (295д)MCP server that enables AI assistants or agents to search Wikimedia Commons images with metadata and visual thumbnails.
Описание
MCP server that enables AI assistants or agents to search Wikimedia Commons images with metadata and visual thumbnails.
README
This MCP (Model Context Protocol) server enables AI assistants to search for images on Wikimedia Commons. It provides detailed metadata and optional thumbnail composites to help AI models visually compare results.
Overview
This server is designed to give AI assistants "eyes" when searching for visual content. Instead of guessing based on filenames or text descriptions alone, the AI can retrieve a structured list of image metadata and a composite image containing thumbnails of the search results.
This capability is particularly useful when an AI assistant needs to:
- Find suitable images for creating websites, articles, or presentations.
- Select images for educational materials or books.
- Verify the visual content of an image before recommending it.
- Compare multiple images to choose the most relevant one for a specific context.
By providing both metadata (license, author, description, dimensions) and a visual preview, the AI can make informed decisions about which images to use or download.
Setup
Prerequisites
- Node.js: Version 18 or higher.
- MCP Client: A compatible client such as VS Code, Cursor, Claude Code, Windsurf, Cline, Claude Desktop...
Installation
To use this server, configure your MCP client to run it using npx.
VS Code
Add the following configuration to your MCP settings file (typically located at %APPDATA%\Code\User\globalStorage\mcp-servers.json on Windows or ~/Library/Application Support/Code/User/globalStorage/mcp-servers.json on macOS).
{
"mcpServers": {
"wikimedia-image-search": {
"command": "npx",
"args": [
"-y",
"wikimedia-image-search-mcp"
]
}
}
}
Cursor
Go to Cursor Settings > MCP > Add new MCP Server.
- Name: wikimedia-image-search
- Type: command
- Command:
npx -y wikimedia-image-search-mcp
Alternatively, edit your .cursor/mcp.json file:
{
"mcpServers": {
"wikimedia-image-search": {
"command": "npx",
"args": [
"-y",
"wikimedia-image-search-mcp"
]
}
}
}
Claude Desktop
Edit your claude_desktop_config.json file (typically located at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS).
{
"mcpServers": {
"wikimedia-image-search": {
"command": "npx",
"args": [
"-y",
"wikimedia-image-search-mcp"
]
}
}
}
Claude Code
Run the following command in your terminal:
claude mcp add wikimedia-image-search -- npx -y wikimedia-image-search-mcp
Tool Usage
This server exposes a single tool: wikimedia_search_images.
Tool Schema
The tool accepts the following parameters:
- query (string, required): The search terms (e.g., "sunset ocean", "eiffel tower").
- limit (number, optional): Maximum number of results to return (default: 9, max: 50).
- offset (number, optional): Number of results to skip for pagination.
- license (string, optional): Filter by license. Options:
"all"(default) or"no_restrictions"(CC0/Public Domain). - include_thumbnails (boolean, optional): Whether to generate and return a composite image of thumbnails (default:
true).
How It Works
- Fetching: The tool queries the Wikimedia Commons API using the provided search terms and filters. It retrieves raw JSON data containing image URLs, metadata, and license information.
- Processing: The raw JSON response is parsed and transformed into a clean, structured list of
ImageMetadataobjects. - Formatting:
- Text: The metadata list is converted into a YAML-formatted string. This provides the AI with a readable, structured text overview of the results (including file size, dimensions, author, and license).
- Visual: If
include_thumbnailsis true, the tool downloads the thumbnail for each result. It then uses thesharplibrary to composite these thumbnails into a single grid image, with index numbers overlaid on each image.
- Response: The tool returns a multi-content message containing the YAML text and the composite image (MIME type
image/jpeg).
You can view examples of the output files in the test-output/ directory:
- wikimediaSearchResults.json: The raw JSON response from the Wikimedia API.
- formattedSearchResults.txt: The YAML-formatted text response.
- thumbnailComposite.jpeg: The generated visual grid of search results.
Demonstration

Development
To contribute to this project or run it locally from source:
Clone the repository:
git clone https://github.com/yanexr/wikimedia-image-search-mcp.git cd wikimedia-image-search-mcpInstall dependencies:
npm install # or pnpm installBuild the project:
npm run build # or pnpm run buildLocal Configuration: To test the server locally with an MCP client, point the configuration to your built file.
{ "mcpServers": { "wikimedia-local": { "command": "node", "args": [ "C:/path/to/wikimedia-image-search-mcp/dist/index.js" ] } } }Testing and Debugging: You can use the MCP Inspector to test the server interactively:
npm run inspect # or pnpm run inspect
Установка Wikimedia Image Search
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/yanexr/wikimedia-image-search-mcpFAQ
Wikimedia Image Search MCP бесплатный?
Да, Wikimedia Image Search MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Wikimedia Image Search?
Нет, Wikimedia Image Search работает без API-ключей и переменных окружения.
Wikimedia Image Search — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Wikimedia Image Search в Claude Desktop, Claude Code или Cursor?
Открой Wikimedia Image Search на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
ARA
Generate images, video and audio from any AI agent — one connector.
автор: ARAOmni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
автор: buildwithtazaYouTube
Transcripts, channel stats, search
автор: YouTubeEverArt
AI image generation using various models.
автор: modelcontextprotocolgpu-bridge/mcp-server
Unified GPU inference API with 30 AI services (LLM, image gen, video, TTS, whisper, embeddings, reranking, OCR) as MCP tools. Pay-per-use via x402 USDC or API k
автор: gpu-bridgehamflx/imagen3-mcp
A powerful image generation tool using Google's Imagen 3.0 API through MCP. Generate high-quality images from text prompts with advanced photography, artistic,
автор: hamflxmerterbak/Grok-MCP
MCP server for xAI's [Grok API](https://docs.x.ai/docs/overview) with agentic tool calling, image generation, vision, and file support.
автор: merterbakSureScaleAI/openai-gpt-image-mcp
OpenAI GPT image generation/editing MCP server.
автор: SureScaleAIYangLiangwei/PersonalizationMCP
Comprehensive personal data aggregation MCP server with Steam, YouTube, Bilibili, Spotify, Reddit and other platforms integrations. Features OAuth2 authenticati
автор: YangLiangweiAceDataCloud/MCPFlux
Flux AI image generation and editing (Black Forest Labs) via Ace Data Cloud API.
автор: AceDataCloudCompare Wikimedia Image Search with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории media
