Skip to main content
Glama
Marginalia MCP Server

Marginalia MCP Server

by bmorphism

边注 MCP 服务器

MCP(模型上下文协议)服务器提供对Marginalia Search 的访问,Marginalia Search 是一个专注于查找非商业内容和互联网隐藏瑰宝的搜索引擎。

特征

  • 使用 Marginalia Search API 搜索网页

  • 可配置的搜索参数包括索引和结果计数

  • 带有有用错误消息的速率限制保护

  • 使用 MCP SDK 构建,实现无缝集成

Related MCP server: web-search-mcp

安装

npm install
npm run build

配置

可以使用环境变量来配置服务器:

  • MARGINALIA_API_KEY :您的 Marginalia Search API 密钥(可选,默认为公开访问)

要申请专用 API 密钥,请联系: kontakt@marginalia.nu

用法

服务器提供以下MCP工具:

搜索

使用 Marginalia Search 按照以下参数搜索网页:

  • query (必需):搜索查询字符串

  • index (可选):搜索索引号(对应于主 GUI 中的下拉菜单)

  • count (可选):返回的结果数(1-100,默认值:10)

通过 MCP 使用的示例:

const result = await mcp.useTool("marginalia", "search", {
  query: "interesting non-commercial websites",
  count: 5
});

响应格式

搜索结果以以下格式返回:

{
  "query": "your search query",
  "license": "license information",
  "results": [
    {
      "url": "result url",
      "title": "page title",
      "description": "page description"
    }
    // ... more results
  ]
}

错误处理

该服务器包括强大的错误处理功能:

  • 速率限制(503 条回复)

  • 无效请求

  • 网络错误

  • API 特定错误

添加文本转语音支持

要使用 say MCP 服务器启用文本转语音功能,请添加以下配置:

对于 Cline(VSCode 扩展)

添加到~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json :

{
  "mcpServers": {
    "say": {
      "command": "node",
      "args": ["/Users/barton/worlds/servers/src/say-mcp-server/build/index.js"]
    }
  }
}

对于克劳德桌面

添加到~/Library/Application Support/Claude/claude_desktop_config.json :

{
  "mcpServers": {
    "say": {
      "command": "node",
      "args": ["/Users/barton/worlds/servers/src/say-mcp-server/build/index.js"]
    }
  }
}

Say MCP 服务器提供文本转语音功能,支持多种语音和语言。可用工具:

  • speak :使用指定的声音和速率大声朗读文本

  • list_voices :列出所有可用的文本转语音声音

执照

MIT 许可证 - 详情请参阅许可证文件

Available Tools

1 tool
search-marginaliaC

Search the web using Marginalia Search

Inputs: query (required), count, index.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'search-marginalia' has a clear and distinct purpose of searching the web using Marginalia Search, leaving no room for confusion or misselection.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'search-marginalia' follows a clear verb_noun pattern, and with no other tools to compare, there are no deviations or inconsistencies in naming conventions.

    Tool Count2/5

    A single tool for a web search server is too few for the apparent scope, as it lacks basic functionality like filtering results, handling pagination, or accessing specific search features. This minimal toolset feels thin and limits the server's utility, making it borderline inadequate for typical search-related tasks.

    Completeness2/5

    The tool surface is severely incomplete for a web search domain. While 'search-marginalia' provides a core search function, there are significant gaps such as no ability to refine searches, view result details, or manage search history. This will likely cause agent failures when more complex search operations are needed.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides web search capabilities using SearxNG, allowing AI assistants like Claude to search the web with a privacy-respecting metasearch engine.
      1
      12
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Provides ad-filtered web search and full-page content reading, including multi-page and JavaScript-rendered pages, with source verification and configurable search providers.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables assistants to search and ask questions against a human-curated search engine index, returning vetted sites with titles, URLs, descriptions, tags, and cited answers. Runs locally over stdio with no API key or signup required.
      52 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables independent web search over a non-commercial, non-SEO index that favors text-heavy, ad-light pages, useful for niche technical and historical topics.
      62 npm
      MIT