homosaurus-mcp

homosaurus-mcp

An experimental MCP server connecting Claude to the Homosaurus V4 LGBTQ+ linked data vocabulary, enabling search and retrieval of authority data for AI-assisted subject analysis and cataloging.

Category
访问服务器

README

Homosaurus MCP

An experimental MCP (Model Context Protocol) server connecting Claude to the Homosaurus V4 LGBTQ+ linked data vocabulary, developed to investigate the potential of large language models in subject analysis and authority control.


What This Server Does

Homosaurus MCP connects Claude Desktop to the Homosaurus vocabulary via two live APIs, allowing you to search and retrieve Homosaurus authority data directly within your AI-assisted cataloging workflow.

Once installed, you can ask Claude things like:

  • "Search the Homosaurus for terms related to bisexuality"
  • "Find the Homosaurus term for queer families"
  • "What are the broader and narrower terms for 'Transgender people'?"
  • "Retrieve the full record for this Homosaurus URI"

The server handles all the API calls, parses the responses, and returns structured data Claude can reason about.


Who This Is For

  • Catalogers using Claude Desktop who want AI-assisted subject heading work grounded in real Homosaurus authority data
  • Library and archives staff building or evaluating AI-assisted cataloging tools and workflows for LGBTQ+ materials
  • Developers integrating Homosaurus vocabulary lookups into MCP-based systems

Tools

Tool Description
search_homosaurus Search by string match, returns top 10 candidates with relevance scores.
search_homosaurus_broad Same search with a higher limit, returns top 25 candidates.
get_homosaurus_term Full term record by URI — preferred label, alt labels, scope note, broader/narrower/related terms.

Notes on Search Behaviour

Search is handled by the NDE Termennetwerk Reconciliation Service API (W3C CG spec v0.2), which searches the Homosaurus vocabulary hosted by IHLIA. Results are scored by relevance and sorted in descending order. The match flag in results indicates whether the service considers a candidate a high-confidence exact match.

search_homosaurus_broad uses the same underlying search but requests 25 candidates instead of 10. Use it when exploring a concept area or when the standard search returns too few results.

Full record retrieval via get_homosaurus_term fetches the individual term JSON-LD directly from homosaurus.org. Broader, narrower, and related terms are returned as URI lists — pass each URI back to get_homosaurus_term to resolve labels if needed.

No local data is cached. Every tool call is a live network request. Search depends on termennetwerk-api.netwerkdigitaalerfgoed.nl; full record retrieval depends on homosaurus.org.


Installation

Requirements

  • Python 3.11 or later
  • Claude Desktop (or another MCP-compatible host)

Install from GitHub

Mac:

pip3 install git+https://github.com/msuicaut/homosaurus-mcp-server.git

Windows (Anaconda Prompt):

pip install git+https://github.com/msuicaut/homosaurus-mcp-server.git

Install from a local clone

git clone https://github.com/msuicaut/homosaurus-mcp-server.git
cd homosaurus-mcp-server
pip install -e .

On Windows with Anaconda, use Anaconda Prompt and add --break-system-packages if prompted.


Claude Desktop Configuration

After installation, add the server to your claude_desktop_config.json. Claude Desktop uses a restricted PATH that does not include the Python bin directory, so the full path to the command is required.

To find your exact path, run the following in Terminal (Mac) or Anaconda Prompt (Windows):

  • Mac: which homosaurus-mcp
  • Windows: where homosaurus-mcp

The examples below are illustrative only — your actual path will differ depending on your Python version and installation method.

Mac (example):

{
  "mcpServers": {
    "homosaurus": {
      "command": "/Library/Frameworks/Python.framework/Versions/3.13/bin/homosaurus-mcp"
    }
  }
}

Windows/Anaconda (example):

{
  "mcpServers": {
    "homosaurus": {
      "command": "C:\\Users\\username\\anaconda3\\Scripts\\homosaurus-mcp.exe"
    }
  }
}

Always replace the path with the actual output of the which or where command on your machine.

Finding your config file:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

After editing the config, quit Claude Desktop completely and reopen it. The Homosaurus tools will be available in your next conversation.

Verifying the installation

Once Claude Desktop is open, ask: "What Homosaurus tools do you have available?" — you should see all three tools listed.


Updating

Mac:

pip3 install --upgrade git+https://github.com/msuicaut/homosaurus-mcp-server.git

Windows (Anaconda Prompt):

pip install --upgrade git+https://github.com/msuicaut/homosaurus-mcp-server.git

After updating, restart Claude Desktop fully.


Troubleshooting

Tools not appearing in Claude Desktop

  • Confirm the package installed without errors: pip show homosaurus-mcp-server
  • Confirm the command is available: homosaurus-mcp --help (should start the server, not throw an error)
  • Check that the config file path is correct for your OS
  • Quit Claude Desktop fully (not just close the window) before reopening

Search returns an error

The search tool depends on the NDE Termennetwerk API. If the API is unavailable, tool calls will return a descriptive error message. Check your network connection and try again.

get_homosaurus_term returns an error

Confirm the URI is a valid homosaurus.org URI returned by a search tool. URIs from other vocabularies will be rejected.

Changes to server.py not taking effect

Python caches compiled bytecode in __pycache__ folders. After editing server.py, delete any __pycache__ folders in the package directory and restart Claude Desktop fully.


License

GPLv3. See LICENSE.


Development Note

The code in this project was developed in collaboration with Claude, Anthropic's AI assistant. The design decisions — including tool selection, API choice, and the application of cataloging practice to the server's behaviour — reflect the author's professional cataloging expertise. Claude handled the implementation of those decisions in Python.


Acknowledgement

This project makes use of the Homosaurus vocabulary provided by the Digital Transgender Archive and maintained at homosaurus.org. Search is provided by the NDE Termennetwerk, a service of the Dutch Digital Heritage Network (Netwerk Digitaal Erfgoed).

The project was inspired by and adapted from KL Tang's cataloger-mcp, extended here to apply to Homosaurus vocabulary lookup.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选