Sponge
Search, read, save and annotate your local Sponge reading library from a coding agent
Sponge is an MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 0.94.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add sponge -- npx -y @hraness/spongeAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"sponge": {
"command": "npx",
"args": [
"-y",
"@hraness/sponge"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"sponge": {
"command": "npx",
"args": [
"-y",
"@hraness/sponge"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"sponge": {
"command": "npx",
"args": [
"-y",
"@hraness/sponge"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add sponge -- npx -y @hraness/spongeOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.sponge]
command = "npx"
args = ["-y", "@hraness/sponge"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"sponge": {
"command": "npx",
"args": [
"-y",
"@hraness/sponge"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "sponge": { "command": "npx", "args": [ "-y", "@hraness/sponge" ] } } }Or run: gemini mcp add -s user sponge npx -- -y @hraness/sponge
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "sponge": { "command": "npx", "args": [ "-y", "@hraness/sponge" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "sponge": { "command": "npx", "args": [ "-y", "@hraness/sponge" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "sponge": { "command": "npx", "args": [ "-y", "@hraness/sponge" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "sponge": { "command": "npx", "args": [ "-y", "@hraness/sponge" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "sponge": { "command": "npx", "args": [ "-y", "@hraness/sponge" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Sponge
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.
Tools this server provides (9)
Taken from the project documentation; the running server may differ.
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_libraryName suggests: reads
- Searches saved articles, PDFs and media by meaning and keywords.
- find_passagesName suggests: reads
- Finds the paragraphs most likely to answer a question.
- list_itemsName suggests: reads
- Lists saved items newest first with filters and paging.
- read_itemName 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_highlightName suggests: changes
- Highlights a verbatim quote with an optional comment.
- add_commentName suggests: changes
- Adds a comment to an item.
- sync
- Syncs the library with your Sponge account.
What it does
- 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
Sponge 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.



