# Sponge

> Sponge is an MCP server for knowledge and memory. Search, read, save and annotate your local Sponge reading library from a coding agent. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI
- **Website:** https://sponge.computer/docs/mcp
- **MCP Registry name:** io.github.hraness/sponge
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

Sponge keeps saved articles, PDFs and media in a local library, and this server exposes it over stdio when you run sponge mcp. Reading and searching stay local; saving a page contacts its source, and queueing or syncing uses your connected Sponge account.

Search is hybrid, by meaning and keywords with a keyword fallback. find_passages ranks paragraphs across the library with heading and page or timestamp, so an agent can answer with quotes, while read_item returns full Markdown in chunks of 40,000 code units or a summary with digest, excerpt and annotations.

Write tools can capture a URL, add a verbatim highlight with an optional comment, or add a comment. Unknown arguments are rejected and failures return a code and a hint. The server speaks MCP protocol versions 2025-06-18, 2025-03-26 and 2024-11-05.

## Features

- **Hybrid library search:** Finds items by meaning and keywords.
- **Passage retrieval:** Ranks paragraphs that answer a question, with locations.
- **Chunked reading:** Pages through long items using nextOffset.
- **Highlights and comments:** Adds verbatim quotes and notes to items.
- **Account queue and sync:** Queues URLs and syncs devices when logged in.

## Good for

- Ask an agent to answer from your saved articles with quotes
- Capture a web page to the library mid-session
- Highlight a passage in a saved PDF
- List unread items and summarise them

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add sponge -- npx -y @hraness/sponge
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "sponge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add sponge -- npx -y @hraness/sponge
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.sponge]
command = "npx"
args = ["-y", "@hraness/sponge"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user sponge npx -- -y @hraness/sponge

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sponge": {
      "command": "npx",
      "args": [
        "-y",
        "@hraness/sponge"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 9 tools change data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `search_library` (name suggests: reads): Searches saved articles, PDFs and media by meaning and keywords.
- `find_passages` (name suggests: reads): Finds the paragraphs most likely to answer a question.
- `list_items` (name suggests: reads): Lists saved items newest first with filters and paging.
- `read_item` (name suggests: reads): Reads one item as Markdown or as a summary.
- `save_url`: Captures a web page into the local library.
- `queue_save`: Queues a URL in your Sponge account for connected devices.
- `add_highlight` (name suggests: changes): Highlights a verbatim quote with an optional comment.
- `add_comment` (name suggests: changes): Adds a comment to an item.
- `sync`: Syncs the library with your Sponge account.

## FAQ

### Does Sponge send my library anywhere?

Read tools stay local. Saving contacts the source, and queueing or syncing uses your Sponge account.

### How do I run Sponge?

Run sponge mcp to serve the library over stdio, or use the npm package @hraness/sponge.

### What happens on a duplicate quote?

add_highlight fails with quote-ambiguous and the match count; pass occurrence to choose.

### Do I need to log in?

Only for queue_save and sync, which need sponge login.

### How do I add Sponge to Claude Code?

Run this command in your terminal: claude mcp add sponge -- npx -y @hraness/sponge

### What are the best alternatives to Sponge?

The closest alternatives to Sponge are Codebase Memory, XERJ, Ha MCP, Claude Code Ultimate Guide and Concord MCP.

## Where this comes from

- Description: written from the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Open Sunsama](https://ai-powered.com/mcp/open-sunsama): Open Sunsama is an open-source MCP server for productivity.

---
Source: https://ai-powered.com/mcp/sponge
