Context Processor MCP Server for Metadata Extraction
Enhance content clarity and searchability with the MCP server's configurable context processing (clarify, analyze, search, fetch) for metadata extraction.
Overview
The Context Processor MCP (Model Context Protocol) Server is a small, configurable service for extracting and enriching metadata from textual content and associated resources. It implements a pipeline-oriented approach to context processing with four primary modes—clarify, analyze, search, and fetch—so you can tailor how content is transformed and prepared for downstream systems such as search indexes, QA chains, or knowledge graphs.
This server is useful when you need automated, repeatable preprocessing of documents and content fragments: clarifying ambiguous references, analyzing structure and entities, performing targeted search for related context, and fetching external resources referenced in the content. By separating these concerns into modular processors, the MCP server helps improve relevance and discoverability in search and retrieval applications.
Repository: https://github.com/mschultheiss83/context-processor
Features
- Configurable pipeline with four built-in modes: clarify, analyze, search, fetch
- Modular processors that can be composed per-request or by configuration
- Pluggable connectors for search and resource fetching
- Structured metadata output (entities, summaries, citations, search hits)
- HTTP API for synchronous processing and JSON payloads
- Lightweight, suitable for integration into ingestion and indexing workflows
Installation / Configuration
Basic setup (clone and run):
# clone the repository
# install dependencies (if Node-based)
# start in development mode
Docker (example):
# build the image
# run with default config
Example configuration (JSON/YAML) — this defines the pipeline and connectors:
API example: process content via HTTP POST
Available Tools / Resources
The MCP server exposes a set of tools (processors) you can enable or extend. Typical built-ins:
- Clarifier: prompts or heuristics to disambiguate vague phrases, expand acronyms, or generate follow-up clarification queries.
- Analyzer: NLP routines to extract entities, topics, summaries, and structural metadata.
- Searcher: connector layer to query external indexes (Elasticsearch, OpenSearch, vector DBs) and return top hits with relevance scores.
- Fetcher: HTTP/URL fetcher to crawl and retrieve referenced documents, images, or attachments for inline analysis.
You can add custom processors by implementing the processor interface (input, params, output) and registering it in the configuration.
Use Cases
Search indexing pipeline
- Ingest documents through the MCP server with analyze + search modes to extract entities and find related documents. Store resulting metadata (entities, summary, related_ids) alongside indexed content to improve query relevance and suggestion features.
Customer support knowledge enrichment
- Run Clarify then Fetch on incoming tickets to expand ambiguous terms and retrieve linked KB articles. The Analyzer can then extract actionable entities (product names, versions) for automated routing or suggested responses.
Contextual QA and LLM prompting
- Use Search to fetch the most relevant passages from a document corpus, then run Clarify to produce precise prompts or follow-up questions for an LLM. This reduces hallucination by grounding prompts in extracted metadata and citations.
Content migration and cleanup
- For large content migrations, run Analyze to detect deprecated terminology and summarize pages. Combine Fetch to pull external references and produce a mapping of broken links, citations, and recommended replacements.
Data model and outputs
Typical output JSON (shortened):
This structured output makes it straightforward to persist metadata, feed downstream services, or generate UI-level contextual hints.
Next steps
- Review the repository README and examples in the GitHub project: https://github.com/mschultheiss83/context-processor
- Start with a minimal pipeline (analyze only) and progressively enable other processors
- Implement connectors for your search/index backend and register them in the config
This MCP server is designed to be adaptable—compose the clarify, analyze, search, and fetch tools to match the needs of search, retrieval, and metadata extraction workflows.