Mem- Oracle

MCP Server

Model Context Protocol server for explicit tool calls.

Starting the MCP Server

Terminal
mem-oracle mcp

The server uses stdio for communication, making it compatible with Claude Code and other MCP-enabled tools. If you're running from source, use bun run src/index.ts mcp.

Configuration

Add to your Claude Code MCP configuration (.mcp.json or settings):

.mcp.json
{
  "mcpServers": {
    "mem-oracle": {
      "command": "mem-oracle",
      "args": ["mcp"]
    }
  }
}

Available Tools

search_docs

Search through indexed documentation.

Parameters

ParameterTypeRequiredDescription
querystringYesThe search query
top_knumberNoNumber of results (default: 5)
docset_idsstring[]NoDocset IDs to filter by

Example Usage

Example
Use the search_docs tool to find information about server components

Response

Returns an array of documentation snippets with:

  • content: The relevant documentation text
  • url: Source URL
  • title: Page title
  • score: Similarity score

get_snippets

Get specific documentation chunks by ID.

Parameters

ParameterTypeRequiredDescription
chunk_idsstring[]YesArray of chunk IDs to retrieve

Example Usage

Example
Use get_snippets to retrieve chunks ["chunk_123", "chunk_456"]

index_docs

Index a documentation website.

Parameters

ParameterTypeRequiredDescription
base_urlstringYesBase URL to index
seed_slugstringYesStarting path to crawl
namestringNoCustom name for the docset
wait_for_seedbooleanNoWait for seed page (default: true)

Example Usage

Example
Use index_docs to index https://nextjs.org/docs/getting-started

Response

Returns indexing status with:

  • docsetId: The created docset ID
  • status: Current indexing status
  • message: Status message

index_status

Get the status of all indexed documentation.

Parameters

None required.

Example Usage

Example
Use index_status to check what documentation is indexed

Response

Returns status of all docsets with page counts and last update times.


Integration Examples

With Claude Code

Once configured, Claude will automatically have access to the tools:

Example Conversation
Claude: I'll search the indexed documentation for information about routing.

[Uses search_docs tool with query "routing"]

Based on the documentation, here's how routing works...

Automatic URL Detection

When you mention documentation URLs in your prompts, the MCP server can automatically index them:

Auto-Detection
How do I use the App Router? See https://nextjs.org/docs/app

[Claude detects URL and uses index_docs tool]
[Then uses search_docs to find relevant information]

MCP vs Worker API

FeatureMCP ServerWorker API
CommunicationstdioHTTP
Use caseClaude Code integrationProgrammatic access
StartupOn-demandBackground service
Toolssearch_docs, index_docs, etc.REST endpoints

Use the MCP server when you want Claude to have direct tool access. Use the Worker API for programmatic access or when running as a background service.

On this page