Hachimi Image Search MCP Server

Hachimi Image Search MCP Server

hachimi-image-search-mcp•bymarisalice114

An MCP server built on Spring AI that exposes tools for searching Pexels images by keyword and returning image links.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides a searchImage tool that searches images by keyword and returns a default number of comma-separated image links.
  • •Offers searchImageWithCount to return a caller-specified number of images between 1 and 20.
  • •Includes fixed-count convenience tools: searchFewImages returns 3 images, searchManyImages returns 12, and searchSingleImage returns 1.
  • •Runs over either stdio or SSE transport, with configuration profiles for each communication mode.

BEST FOR

  • •Agents that need keyword-based stock image search through Pexels.
  • •Workflows requiring a specific number of image results, from one to twenty.
  • •Clients like Cherry Studio that connect to MCP servers over stdio or SSE.

ABOUT HACHIMI-IMAGE-SEARCH-MCP

Hachimi Image Search MCP Server is cataloged as an MCP server attributed to marisalice114. An MCP server built on Spring AI that exposes tools for searching Pexels images by keyword and returning image links. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Hachimi Image Search MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server support different numbers of image results?

Yes. searchImageWithCount accepts a count from 1 to 20, while searchFewImages returns 3 images, searchManyImages returns 12, and searchSingleImage returns 1.

What is needed to run the server?

It requires Java 21 or higher and a Pexels API key.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 21eb4c4c8fc7 · 采集于 2026-11-13 13:35:27 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Hachimi Image Search MCP Server

简介

Hachimi Image Search API 现已兼容MCP协议。任何支持MCP协议的智能体助手(如Claude、Cursor以及其他兼容客户端)都可以通过此服务快速接入Pexels图片搜索功能。

本服务基于 Spring AI MCP Java SDK 开发,提供了灵活的图片搜索工具。

🛠️ 工具列表

  • searchImage(query)

    • 描述:根据关键词搜索图片。
    • 输入: query (搜索关键词)
    • 输出: 默认数量的图片链接 (以逗号分隔)
  • searchImageWithCount(query, count)

    • 描述:根据关键词搜索指定数量的图片。
    • 输入: query (搜索关键词), count (图片数量, 1-20)
    • 输出: 指定数量的图片链接 (以逗号分隔)
  • searchFewImages(query)

    • 描述:快速搜索少量(3张)图片。
    • 输入: query (搜索关键词)
    • 输出: 3张图片链接 (以逗号分隔)
  • searchManyImages(query)

    • 描述:搜索较多(12张)图片。
    • 输入: query (搜索关键词)
    • 输出: 12张图片链接 (以逗号分隔)
  • searchSingleImage(query)

    • 描述:仅搜索1张图片。
    • 输入: query (搜索关键词)
    • 输出: 1张图片链接

🚀 快速开始

前提条件

  • Java 21 或更高版本
  • Pexels API Key (从 Pexels API 免费获取)

1. 安装

克隆项目到本地:

git clone https://github.com/Marisalice114/hachimi-image-search-mcp-server.git
cd hachimi-image-search-mcp-server

2. 构建

使用 Maven 打包项目:

mvn clean package

成功后,将在 target 目录下生成 hachimi-image-search-mcp-server-0.0.1-SNAPSHOT.jar 文件。

3. 使用

在您的MCP客户端(如 Cherry Studio)的MCP服务器配置中,添加以下JSON配置。

Stdio 模式 (推荐)

此模式通过标准输入/输出进行通信,配置简单。

{
  "mcpServers": {
    "hachimi-image-search-mcp-server": {
      "command": "java",
      "args": [
        "-Dspring.profiles.active=local,stdio",
        "-jar",
        "path/to/hachimi-image-search-mcp-server-0.0.1-SNAPSHOT.jar"
      ],
      "env": {
        "PEXELS_API_KEY": "YOUR_PEXELS_API_KEY"
      }
    }
  }
}

SSE (Server-Sent Events) 模式

此模式通过HTTP SSE进行通信,需要暴露端口。

{
  "mcpServers": {
    "hachimi-image-search-mcp-server": {
      "command": "java",
      "args": [
        "-Dspring.profiles.active=local,sse",
        "-jar",
        "path/to/hachimi-image-search-mcp-server-0.0.1-SNAPSHOT.jar"
      ],
      "env": {
        "PEXELS_API_KEY": "YOUR_PEXELS_API_KEY"
      },
      "mcp": {
         "port": 8080,
         "protocol": "http"
      }
    }
  }
}

重要提示:

  • 将 path/to/ 替换为您项目中 jar 文件的 绝对路径。
  • 将 YOUR_PEXELS_API_KEY 替换为您自己的Pexels API密钥。
  • 激活 local profile 是为了加载 application-local.yml 中定义的 pexels.api-key 配置。

⚙️ 配置详解

Spring Profiles

项目通过Spring Profiles管理不同的运行环境:

  • stdio: 启用标准输入/输出通信模式。
  • sse: 启用SSE通信模式,服务会监听 8080 端口。
  • local: 加载 application-local.yml 配置文件,用于注入 PEXELS_API_KEY。

在启动时,您应该组合使用 local 和您需要的通信模式,例如 local,stdio 或 local,sse。

环境变量

您也可以直接通过环境变量设置API密钥,而不是在JSON配置中。

export PEXELS_API_KEY="YOUR_PEXELS_API_KEY"

在这种情况下,可以移除JSON配置中的 env 部分。

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Hachimi Image Search MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/hachimi-image-search-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research