home / mcp / wikipedia mcp server
Queries Wikipedia Commons for public-domain images and retrieves detailed metadata for attribution and licensing.
Configuration
View docs{
"mcpServers": {
"dazeb-wikipedia-mcp-image-crawler": {
"command": "node",
"args": [
"/absolute/path/to/wikipedia-mcp-image-crawler/build/index.js"
]
}
}
}You have a Model Context Protocol (MCP) server that lets you search Wikipedia Commons for images and retrieve rich metadata. It focuses on public-domain and freely usable images, with tools to search by query and to fetch detailed info about each image, including licenses and authors. This makes it easy to build workflows that attribution-friendly image collections.
You interact with the server through an MCP client. Start by using the image search tool to find images that match a query, then use the image information tool to retrieve full metadata for any image you select. This enables you to assemble and attribute image sets from Wikipedia Commons with confidence about licenses and authors.
Prerequisites you need before installing:
- Node.js 18 or higher
- npm or pnpm (package managers)
Step by step installation flow
1. Clone the project to your local environment
2. Install dependencies using your preferred package manager
3. Build the MCP server so it is ready to run
{
"mcpServers": {
"wikipedia-mcp-server": {
"type": "stdio",
"name": "wikipedia_mcp",
"command": "node",
"args": ["/absolute/path/to/wikipedia-mcp-image-crawler/build/index.js"],
"disabled": false,
"env": []
}
}
}Image Search tool — find images that match a query and return image URLs, dimensions, MIME types, and sizes. Access this tool by name wiki_image_search with arguments such as a query and a limit.
Image Information tool — fetch detailed metadata for a specific image, including license and author, and get the full-resolution image URLs. Access this tool by name wiki_image_info with the image title.
This MCP server run configuration does not require additional environment variables beyond those shown in the start snippet. If you add environment variables later, you should list them under a global environment section for the MCP client and mirror them in the server configuration.
To run in watch mode during development, you can use the project’s development workflow to auto-rebuild as you modify source files.
If you need debugging, use the MCP Inspector tooling which provides a URL you can open in your browser to inspect the MCP server interactions.
Search for images on Wikipedia Commons by query with a configurable limit; returns image URLs, dimensions, MIME types, and sizes.
Fetches detailed metadata for a specific image, including license and author, and returns full-resolution image URLs and descriptions.