mcp-toolbox
mcp-toolbox is an offline, read-only MCP server for searching and reading bundled Spanish BOE documents and a recorded tender-screening report.
Search the bundled BOE corpus by keyword with ranked, accent-insensitive, title-weighted results, snippets, source URLs, and an optional result limit.
Retrieve a BOE document’s metadata and paragraphs by
doc_id; unknown IDs return an MCP tool error.List recorded TED/PLACSP tenders screened with GO / REVIEW / NO_GO verdicts and per-criterion evidence, optionally filtered by verdict, query, or limit.
Retrieve one recorded tender by bare ID or
SOURCE:id, with its per-criterion evidence; unknown IDs or wrong source prefixes return an MCP tool error.Access read-only resources for the BOE index, individual BOE documents, the full tender report, verdict-filtered tender reports, and individual tenders.
Use the
summarise_boe_documentprompt to render a reusable summarization template that embeds a bundled BOE document and asks for paragraph-number citations; the server does not call a model.Run locally over stdio against static snapshots, with no network, API keys, or LLM required at runtime.
Serves a recorded snapshot of TED (Tenders Electronic Daily) tender notices that were screened against a fictional profile. Provides tools to list tenders with rule-based GO / REVIEW / NO_GO verdicts and per-criterion evidence (CPV, deadline, keywords, value), and to retrieve a single tender by id. Read-only and offline: the report is a static copy, not a live TED API connection.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-toolbox Busca en el BOE las plazas de Subalterno del Ayuntamiento de Torrox"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-toolbox
A small, tested MCP server that lets an AI client search and read official Spanish BOE documents. It is the start of a toolbox of narrow servers reusing the adapters of open-tender-radar and sovereign-rag.
Current status (v0.1)
One server, four read-only tools, five resources (three of them templates) and one prompt, stdio transport, built on the official Python SDK (mcp>=1.12,<2):
search_boe(query, limit=5): ranked keyword search (accent-insensitive, title matches weigh 3x) with snippets and source URLs.get_boe_document(doc_id): metadata and paragraphs of one document; unknown ids return an MCP tool error.triage_tenders(verdict=None, query=None, limit=10): lists the recorded open-tender-radar report (10 public TED/PLACSP tenders screened against a fictional profile on 2026-11-04) with GO / REVIEW / NO_GO and per-criterion evidence. Rule-based screening, not bid advice; evidence like "days left" is frozen at the recording date. Provenance insrc/mcp_toolbox/data/tenders/SOURCES.md.get_tender(tender_id): one recorded tender with its per-criterion evidence; accepts412026orPLACSP:412026; unknown ids (or a wrong source prefix) return an MCP tool error.Prompt
summarise_boe_document(doc_id, audience="a non-lawyer"): a reusable template that embeds the numbered paragraphs of a bundled document and instructs the model to stay within the text and cite paragraph numbers. It only renders text; no model is called by the server. Unknown ids return an MCP error.
Data: 11 recorded BOE documents (BOE of 2026-11-03) bundled in the package. No network, keys or LLM at runtime or in tests.
Related MCP server: BOE & EUR-Lex MCP Server
Quickstart
Python 3.12+.
git clone https://github.com/jorgitobg/mcp-toolbox
cd mcp-toolbox
python -m venv .venv && . .venv/bin/activate
pip install -e .
mcp-toolbox-demo # or: python -m mcp_toolbox.demoUse it from an MCP client by launching python -m mcp_toolbox (or mcp-toolbox) over stdio.
Configure a desktop MCP client
Most desktop clients read a JSON file with an mcpServers map (the file location depends on the client). Point command at the Python of the virtualenv where you ran pip install -e . (use an absolute path):
{
"mcpServers": {
"mcp-toolbox": {
"command": "/absolute/path/to/mcp-toolbox/.venv/bin/python",
"args": ["-m", "mcp_toolbox"]
}
}
}Besides the four tools, the server exposes read-only resources that a client can attach to a conversation without a tool call: boe://index (all bundled documents), boe://document/{doc_id} (one document, same payload as get_boe_document), tenders://report (the whole recorded tender report) and tenders://report/{verdict} (GO, REVIEW or NO_GO; same payload as triage_tenders) and tenders://tender/{tender_id} (one tender, same payload as get_tender). No subscriptions: the data are static snapshots. This snippet follows the common client convention and was not tested against a specific desktop client here; the server itself is exercised by the test-suite with the official Python MCP client over stdio.
Development: pip install -e '.[dev]', then ruff check . && ruff format --check . && pyright && pytest (coverage gate 85%). scripts/verify_wheel.py checks the artifact rather than the checkout: CI builds the wheel, installs it into a clean virtualenv outside the repository and drives the installed mcp-toolbox console script over stdio, which fails if the bundled corpora did not make it into the package.
Demo output
The demo spawns the real server as a subprocess and talks to it with the official MCP client. Real output:
tools: get_boe_document, get_tender, search_boe, triage_tenders
search_boe('plazas Subalterno Ayuntamiento'): 3 result(s)
BOE-A-2026-23041 score=8 Resolución de 28 de octubre de 2026, del Ayuntamiento de Torrox (Málaga), referente a la c
BOE-A-2026-23049 score=8 Resolución de 29 de octubre de 2026, del Ayuntamiento de Borriana/Burriana (Castellón/Cast
BOE-A-2026-23045 score=7 Resolución de 29 de octubre de 2026, del Ayuntamiento de Tarragona, Instituto Municipal de
get_boe_document(BOE-A-2026-23041): 6 paragraphs, https://www.boe.es/diario_boe/xml.php?id=BOE-A-2026-23041
triage_tenders(verdict='GO'): 1 of 10 matched
[GO] PLACSP:412026 Servicios de operación del Centro de Operaciones de Segurida
cpv pass CPV 72222300 within profile
deadline pass 7 days left
keywords unknown no profile keyword in title
value pass 206,612 EUR within limitsLayout
Hexagonal: domain/ (models, DocumentSource port), application/search.py, adapters/ (BOE XML parser, bundled corpus), server.py (MCP wiring). See docs/spec/0001-boe-search-server.md and docs/adr/.
Limitations
Keyword counting only: no stemming, phrases or semantics.
Static snapshots (11 BOE documents, one tender report); no live BOE, TED or PLACSP access, and the tender report is a copy, not a live call into open-tender-radar.
stdio only; no HTTP transport or auth.
mcp2.x is not supported; pinned below 2. Measured on 2.3.0 (ADR 0004): the suite (after renames and one adapted in-process test), demo and wheel pass, but error messages for unknown ids and invalid verdicts lose their reason text for clients. Earlier notes in ADR 0003.
Licence
Apache-2.0. BOE content is reused under the Agency's reuse licence (see src/mcp_toolbox/data/SOURCES.md).
Available Tools
4 toolsget_boe_documentA
Return one bundled BOE document (metadata + paragraphs) by identifier.
Inputs: doc_id (required). Returns: object
get_tenderA
Return one recorded tender with its per-criterion evidence, by id.
Accepts a bare id ('412026') or 'SOURCE:id' ('PLACSP:412026'). Offline, read-only.
Inputs: tender_id (required). Returns: object
search_boeB
Search the bundled BOE corpus by keywords. Title matches weigh 3x. Offline, read-only.
Inputs: query (required), limit. Returns: object
triage_tendersA
List recorded TED/PLACSP tenders screened against a fictional profile.
Rule-based GO / REVIEW / NO_GO with per-criterion evidence (open-tender-radar report, recorded 2026-11-04). Optional verdict filter and keyword query. Offline, read-only.
Inputs: limit, query, verdict. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The BOE pair (search_boe vs get_boe_document) is clearly distinct as search versus single-document retrieval. The tender pair (triage_tenders vs get_tender) overlaps slightly since both surface per-criterion evidence, but the list/filter versus single-id-lookup split is adequately described.
All four tools follow a consistent verb_noun snake_case pattern: get_boe_document, search_boe, get_tender, triage_tenders. Verb choices (get/search/triage) are meaningful and predictable.
Four tools map neatly onto two resources, each with a search/list operation and a single-item retrieval operation. Nothing feels padded or missing for an offline, read-only corpus server.
For a read-only BOE and tender corpus, the surface covers both discovery (search_boe, triage_tenders) and retrieval (get_boe_document, get_tender) for each domain. No lifecycle operations are expected since the server is explicitly read-only, leaving no obvious dead ends.
Maintenance
Related MCP Connectors
Search Spain's BOE/BORME gazettes, open EU funding calls and EU TED tenders. Keyless sources.
Spain's Official State Gazette (BOE) items as tagged JSON: grants, tax, public jobs, full text.
Verified doc corpora for agents: grep-first retrieval, hashed pages, Merkle+RFC-3161 receipts
Spain consolidated legislation — Agencia Estatal Boletín Oficial del Estado (BOE), open-data API.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables LLMs like Claude to query the official Spanish BOE API for consolidated legislation, daily summaries, and auxiliary government tables.3162MIT
- AlicenseAqualityDmaintenanceEnables querying and analyzing Spanish (BOE) and EU (EUR-Lex) legal documents, with advanced search, PDF extraction, and cross-reference detection.836 npm2MIT
- AlicenseAqualityBmaintenanceEnables AI clients to search and retrieve official bulletins, articles, and PDFs from the Melilla official gazette (BOME), including fast local index queries.19MIT
- AlicenseAqualityBmaintenanceEnables Claude, Cursor, and other MCP clients to search Spanish BOE/BORME gazettes, open and forthcoming EU funding calls, and TED public procurement notices through read-only tools that return live JSON with source links.31MIT