Skip to main content
Glama
cubicj

CubicJ MCP Search

Official
by cubicj

CubicJ MCP Search

Stateless Streamable HTTP MCP server with two read-only tools for LLM clients:

Tool

What it does

web_search

Brave LLM Context search: relevance-ranked page excerpts per source URL, with count, max_tokens, freshness, country, and search_lang controls

fetch

Readable extraction of one URL as markdown (Defuddle), with site extractors for DCInside, Naver Blog, Bluesky, GitHub, Clien, Ruliweb, FMKorea, and namu.wiki, PDF text, raw mode, and pagination

It replaces the separate brave-search-api-mcp, dc-mcp-search, and defuddle-fetch-mcp servers with one deployment sized by measured usage.

Requirements

  • Node.js 24, npm 11

  • BRAVE_API_KEY (Brave Search API, Search plan) for web_search

  • Optional GITHUB_TOKEN for higher GitHub API limits in fetch

Related MCP server: Brave Search MCP Server

Run

npm ci
npm run build
BRAVE_API_KEY=... node dist/index.js --transport http --port 8006
curl -s http://127.0.0.1:8006/health

Without --transport http (or --port) the server speaks MCP over stdio. PORT sets the HTTP port when --port is absent; .env.example lists the variables for a systemd EnvironmentFile.

The HTTP endpoint is POST /mcp. Requests carrying a browser Origin header are rejected, bodies are capped at 1 MiB, and one log line per request goes to stderr. Put authentication in front of it (a reverse proxy or an OAuth gateway); the server has none.

Development

npm test            # builds, then runs Vitest offline
npm run typecheck
npm run lint        # Biome
npm run smoke -- "query"   # live web_search, needs BRAVE_API_KEY exported

License

MIT

Available Tools

2 tools
fetchFetch URLA
Read-onlyIdempotent

Fetch one URL and return its readable content as markdown with a title and metadata. Use it to read a page in full after web_search, or any URL the user gives: articles, docs, forums, news. Site-specific extractors return post body plus comments for gall.dcinside.com, Clien, Ruliweb, and FMKorea; body only for blog.naver.com and namu.wiki; threads with replies and profiles with recent posts for bsky.app; raw content or REST data for github.com files, repos, issues, pull requests, and gists. Non-HTML text (JSON, XML, RSS, plain text) is returned as-is; PDFs as page-separated text with page_count; image-only PDFs return a notice; other binaries are errors. raw=true skips extraction and returns the decoded response text. Long content is paginated: content is sliced from start_index (default 0) for max_length characters (default 50000); to continue, call again with start_index advanced by the previous max_length and stop when start_index + max_length >= total_length. Bot-protection pages return an error; empty pages that need JavaScript or a login return a notice.

ParametersJSON Schema
NameRequiredDescriptionDefault
rawNoGet raw content without markdown conversion
urlYesURL to fetch
max_lengthNoMaximum number of characters to return
start_indexNoStart content from this character index

Output Schema

ParametersJSON Schema
NameRequiredDescription
urlYes
modeYes
titleYes
contentYes
metadataNo
extractorNo
max_lengthYes
start_indexYes
total_lengthYes

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare the safety profile (readOnly, idempotent, etc.), but the description adds rich behavioral detail beyond annotations: site-specific extractors for gall.dcinside.com, Clien, Ruliweb, FMKorea, blog.naver.com, namu.wiki, bsky.app, and github.com; handling of non-HTML, PDFs, and binaries; pagination mechanics with start_index and max_length; and error/notice behavior for bot protection and JavaScript-only pages. This is exemplary transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Despite its length, the description is densely packed with essential information and front-loaded with the core action. Every sentence earns its place by covering extraction nuances, content types, pagination, and error cases. There is no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return value details are not needed. The description thoroughly covers the tool's behavior, content handling, pagination, and failure modes. Given the complexity of a web-fetching tool with many site-specific extractors, the description is complete enough for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema: it explains that raw=true skips extraction and returns decoded response text, and it details the pagination workflow using start_index and max_length with a concrete continuation rule. This goes beyond the schema's brief parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description begins with a specific verb and resource: 'Fetch one URL and return its readable content as markdown with a title and metadata.' It clearly distinguishes this tool from the sibling web_search by positioning it as the follow-up for reading full pages. An agent can immediately tell what the tool does and when to choose it over web_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use it after web_search or for any URL the user gives, naming the alternative (web_search) and the condition. However, it does not state when NOT to use fetch (e.g., avoid for binary content or when raw data is needed elsewhere). The context is clear but lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 2 tool updatesv0.1.0
    • First observedfetch
    • First observedweb_search

TDQS

A4.4/5.0

Scored across 2 tools

Disambiguation5/5

web_search handles discovery with ranked excerpts, while fetch retrieves and extracts full content from a single URL. Their roles are clearly distinct and the descriptions reinforce when to use each.

Naming Consistency3/5

fetch is a bare verb and web_search is a compound noun/verb form, so there is no shared verb_noun pattern. Both are readable and common, but the conventions are mixed.

Tool Count4/5

Two tools cover the core search-and-retrieve workflow without redundancy, but the count is slightly below the typical 3–15 range. Each tool earns its place for the server's narrow purpose.

Completeness4/5

The surface covers discovery via web_search and retrieval via fetch, including pagination and many site-specific extractors. Minor gaps like batch fetching or search pagination exist, but there are no major dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Facilitates integration of Brave Search functionalities with AI assistants through the Model Context Protocol, enabling web and local searches using the Brave Search API.
    2
    15
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables web and local business searches through the Brave Search API. Provides general web search with pagination and filtering, plus local business search with automatic fallback to web results.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Integrates the Brave Search API into AI assistants to enable web and local business search capabilities. This allows models to perform real-time information retrieval and locate places using the Model Context Protocol.
    1
    MIT