Marginalia MCP Server

a search over Marginalia for your agentic ducklings

Local serverstdioTypeScript

What is the Marginalia MCP server?

Marginalia MCP server exists for a simple reason — assistants are far more useful when they can act on Marginalia directly instead of describing what you should do. a search over Marginalia for your agentic ducklings.

What you get

An MCP (Model Context Protocol) server that provides access to Marginalia Search, a search engine focused on finding non-commercial content and hidden gems of the internet.

  • Search the web using Marginalia Search API
  • Configurable search parameters including index and result count
  • Rate limiting protection with helpful error messages
  • Built using the MCP SDK for seamless integration

What the assistant can call

Once Marginalia is connected, these are the calls the assistant has available:

  • search — Search the web using Marginalia Search with the following parameters:

Configuration and credentials

You will need one environment variable: MARGINALIA_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

Installation goes through your MCP client rather than a global install: point it at npm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Marginalia's toolset — search — is a fair guide to whether it matches your workflow. It is maintained by bmorphism; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the marginalia mcp server does with a few real requests.

Available tools

ToolWhat it does
searchSearch the web using Marginalia Search with the following parameters:

How to install the Marginalia MCP server

{
  "mcpServers": {
    "marginalia": {
      "command": "npx",
      "args": ["-y", "npm"],
      "env": {
        "MARGINALIA_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
MARGINALIA_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Marginalia to search.

Frequently asked questions

It connects Marginalia to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (search) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Marginalia directly.