mcpField
R
Rijksmuseum MCP Server

Rijksmuseum MCP Server

本地服务
github.com/r-huijts游戏娱乐7290 周前更新

关于 Rijksmuseum MCP Server

Rijksmuseum MCP Server 是一个 MCP 服务,让 AI 模型通过自然语言查询荷兰国家博物馆(Rijksmuseum)的藏品。它面向需要检索、分析艺术品及其信息的用户。

主要功能

  1. 01按艺术家、类型、材质等检索藏品
  2. 02查询作品的详细信息
  3. 03获取高分辨率图像与深度缩放数据
  4. 04浏览用户创建的藏品集
  5. 05生成艺术家作品的时间线

适用场景

  1. 01检索某一时期或某位艺术家的绘画作品
  2. 02了解特定作品的尺寸、材质与历史背景
  3. 03按时间顺序梳理艺术家的创作历程

MCP 相关

该项目是一个 MCP 服务,将 Rijksmuseum 藏品 API 的功能以工具形式提供给 MCP 客户端,例如作品搜索、详情查询和图像获取。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"rijksmuseum": {
"command": "npx",
"args": [
"-y",
"mcp-server-rijksmuseum"
],
"env": {
"RIJKSMUSEUM_API_KEY": "<RIJKSMUSEUM_API_KEY>"
}
}
}
}
启动命令npx -y mcp-server-rijksmuseum
需要配置的环境变量
RIJKSMUSEUM_API_KEY密钥

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npmmcp-server-rijksmuseum

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

Rijksmuseum 标志

Rijksmuseum MCP 服务

一个模型上下文协议(MCP)服务,通过自然语言交互访问 Rijksmuseum 的馆藏。该服务让 AI 模型能够探索、分析 Rijksmuseum 的艺术品和馆藏,并与之交互。

Rijksmuseum Server MCP server

功能

该服务提供多种工具,用于与 Rijksmuseum 馆藏交互:

1. 搜索艺术品(search_artwork)

使用多种条件搜索和筛选艺术品,包括:

  • 文本搜索
  • 艺术家姓名
  • 艺术品类型
  • 材料和技法
  • 时期
  • 颜色
  • 等等
2. 艺术品详情(get_artwork_details)

获取特定艺术品的全面信息,包括:

  • 基本详情(标题、艺术家、日期)
  • 实物属性
  • 历史背景
  • 视觉信息
  • 策展信息
  • 展览历史
3. 高分辨率图像(get_artwork_image)

访问支持深度缩放的高分辨率图像数据:

  • 多个缩放级别
  • 基于图块的图像加载
  • 支持完整分辨率
  • 位置信息
4. 用户收藏集(get_user_sets 和 get_user_set_details)

探索用户创建的收藏集:

  • 浏览精选收藏集
  • 查看主题分组
  • 分析收藏模式
  • 获取收藏集详细信息
5. 查看图像(open_image_in_browser)

在浏览器中直接打开艺术品图像,以便详细查看。

6. 艺术家时间线(get_artist_timeline)

按时间顺序生成艺术家的作品时间线:

  • 追踪艺术发展
  • 分析时期和风格
  • 研究职业生涯历程

示例用例

使用此服务时,可以向 AI 提出以下示例问题:

艺术品探索
"Show me all paintings by Rembrandt from the 1640s"
"Find artworks that prominently feature the color blue"
"What are the most famous masterpieces in the collection?"
"Search for still life paintings from the Dutch Golden Age"
艺术品分析
"Tell me everything about The Night Watch"
"What are the dimensions and materials used in Van Gogh's Self Portrait?"
"Show me high-resolution details of the brushwork in Vermeer's The Milkmaid"
"Compare the colors used in different versions of The Potato Eaters"
艺术家研究
"Create a timeline of Rembrandt's self-portraits"
"How did Van Gogh's use of color evolve throughout his career?"
"Show me all works by Frans Hals in chronological order"
"What techniques did Jan Steen use in his paintings?"
主题探索
"Find all artworks depicting biblical scenes"
"Show me paintings of Amsterdam in the 17th century"
"What artworks feature flowers or still life arrangements?"
"Find portraits that include musical instruments"
馆藏分析
"Show me the most popular user-curated collections"
"Find sets that focus on landscape paintings"
"What are the recent additions to the museum's collection?"
"Show me collections featuring works from multiple artists"
视觉细节
"Let me examine the details in the background of The Night Watch"
"Show me a close-up of the jewelry in Girl with a Pearl Earring"
"Can you display the highest resolution version of The Jewish Bride?"
"I want to study the facial expressions in The Syndics"

开始使用

你可以通过以下两种方式安装此服务:

1. 使用 NPM 包和 Claude Desktop

更新 Claude 配置文件(~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "rijksmuseum-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-rijksmuseum"
      ],
      "env": {
        "RIJKSMUSEUM_API_KEY": "your_api_key_here"
      }
    }
  }
}

你可以从 Rijksmuseum API Portal 获取 API 密钥。

2. 从源代码安装
  1. 克隆此仓库
  2. 安装依赖:
    npm install
    
  3. 复制示例环境文件:
    cp .env.example .env
    
  4. 将 Rijksmuseum API 密钥添加到 .env 文件中:
    RIJKSMUSEUM_API_KEY=your_api_key_here
    
  5. 然后更新 Claude 配置文件:
    {
      "mcpServers": {
        "rijksmuseum-server": {
          "command": "node",
          "args": [
            "/path/to/rijksmuseum-server/build/index.js"
          ],
          "env": {
            "RIJKSMUSEUM_API_KEY": "your_api_key_here"
          }
        }
      }
    }
    

请务必:

  • 将 /path/to/rijksmuseum-server 替换为实际安装路径
  • 在 env 部分添加 Rijksmuseum API 密钥

更新配置后,重启 Claude Desktop 以使更改生效。

配置

可通过环境变量配置此服务:

  • RIJKSMUSEUM_API_KEY:你的 Rijksmuseum API 密钥(必需)
  • PORT:服务端口(默认值:3000)
  • LOG_LEVEL:日志级别(默认值:'info')

API 文档

有关此服务使用的 Rijksmuseum API 端点的详细信息,请访问: Rijksmuseum API 文档

贡献

欢迎贡献!欢迎提交拉取请求,或针对错误和功能需求创建问题。

许可证

本项目采用 MIT 许可证,详情请参阅 LICENSE 文件。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。