MCP Connector

Process and Store Contextual Data

MCP server for saving and enhancing context with pre-processing strategies like clarify, analyze, and search optimization.


91
Spark score
out of 100
Updated last month
Version 1.0.2
Models
universal

Add to Favorites

Why it matters

Intelligently save, manage, and enhance contextual data with customizable preprocessing strategies. This asset enables sophisticated analysis, search optimization, and content clarification for your data.

Outcomes

What it gets done

01

Save content with advanced preprocessing and metadata.

02

Load and search for related contexts based on tags.

03

Analyze content for clarity, keywords, and structural metrics.

04

Optimize content for searchability and external link management.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-context-processor | bash

Capabilities

Tools your agent gets

save_context

Save content as context with additional preprocessing using customizable models

load_context

Load previously saved context and search for related contexts

list_contexts

List all saved contexts with optional filtering by tags, limit, and offset

list_models

List all available context models with their descriptions and strategy count

get_model_info

Get detailed information about a specific context model

delete_context

Delete context by its ID

Overview

Context Processor MCP Server

An MCP server for saving and enhancing context with configurable pre-processing strategies - clarify, analyze, search, and fetch - disclosed as an AI-built personal test project. Use when you want saved context automatically clarified, analyzed, or made more searchable, and related contexts surfaced by shared tags.

What it does

Context Processor is an MCP server for saving, managing, and enhancing context with pre-processing strategies, helping organize information efficiently through smart transformations. The source explicitly discloses that this server is entirely written and maintained by AI (Claude/Gemini) with manual supervision, as a personal test project exploring AI-assisted development, to be used at the user's own discretion. It stores contexts with metadata and tags, and applies configurable pre-processing strategies to improve context quality before saving.

When to use - and when NOT to

Use this server when you want saved context automatically clarified, analyzed, or made more searchable before storage, or when you want related contexts surfaced automatically by shared tags. Since it is disclosed as a personal, AI-maintained test project rather than a production-hardened tool, it should be evaluated at the user's own discretion rather than assumed production-ready.

Capabilities

Four built-in pre-processing strategies handle context enhancement: Clarify detects ambiguous pronouns (it, this, that), passive voice, and vague language (basically, kind of, sort of), producing a clarity score and improvement suggestions; Search extracts the 10 most frequent meaningful keywords after filtering stop words and recommends search queries; Analyze reports word count, average word length, sentence and paragraph counts, and a low/medium/high complexity assessment; Fetch detects URLs in content, identifying up to 5 external references with source metadata. Custom strategies are also supported. Five pre-configured context models combine these strategies: clarify (clarity only), search_optimized, analysis, comprehensive (all strategies enabled), and web_enhanced (for web content with URL handling). Available MCP tools: save_context (title and content required, with optional tags, metadata, and a modelName for pre-processing), load_context (loads a saved context by ID and returns up to 5 related contexts sharing tags), list_contexts (filterable by tags, with limit/offset), list_models (lists all available models with strategy counts), get_model_info (details for a named model), and delete_context (deletes by ID). A worked example shows a comprehensive-model save clarifying vague language like "basically" and "generally," analyzing structure, extracting topics such as authentication and security, and saving all results together.

How to install

Install via:

npm install context-processor

Then build with npm run build and start with npm start (or npm run dev for development mode). Custom models are defined in a context-models.json file at the project root, each with a name, description, and a list of strategies (each with a name, type, enabled flag, and strategy-specific config, e.g. a maxKeywords setting for the search strategy). Contexts persist as individual JSON files in a ./contexts directory, one file per context named by UUID. The architecture separates a ContextStorage component (file-based persistence), a ContextPreprocessor (strategy execution engine), and an MCP protocol handler for tool definitions and execution; a save request flows from the MCP tool handler through the preprocessor's configured strategies (e.g. Clarify, then Analyze, then Search) before being persisted by the storage layer. Adding a custom strategy involves defining its type in types.ts, adding a handler method in ContextPreprocessor, and referencing it from a model in context-models.json. Built-in tests run via npm test. Documented future enhancements include a database backend (MongoDB, PostgreSQL), vector embeddings for semantic search, ML-based categorization, multi-user context sharing, version control for contexts, external API integration, and real-time collaboration. This project is MIT-licensed.

Who it's for

Developers experimenting with MCP-based context management who want saved notes or documentation automatically clarified, analyzed, tagged, and cross-linked by shared tags, with the understanding that this is an AI-built personal test project rather than a vetted production tool.

Source README

Context Processor

⚠️ DISCLAIMER: This MCP server is entirely written and maintained by AI (Claude/Gemini) with manual supervision. It is a personal test project created to explore AI-assisted development. Use at your own discretion.

An intelligent Model Context Protocol (MCP) server for saving, managing, and enhancing context with pre-processing strategies. This server helps you organize information efficiently by applying smart transformations like clarification, analysis, and search optimization.

Features

  • Intelligent Context Storage: Save and organize contexts with metadata and tags

  • Pre-processing Strategies: Multiple configurable strategies to enhance context quality:

    • Clarify: Improve content clarity by detecting and fixing ambiguous language
    • Analyze: Comprehensive content analysis (word count, complexity, structure)
    • Search: Extract keywords and enhance searchability
    • Fetch: Detect and manage URLs and external data references
    • Custom: Support for custom processing strategies
  • Context Models: Pre-configured models combining multiple strategies:

    • clarify: Focus on clarity improvement
    • search_optimized: Optimize for searchability
    • analysis: Detailed content analysis
    • comprehensive: All strategies enabled
    • web_enhanced: For web content with URL handling
  • Context Management Tools:

    • Save contexts with automatic or model-based processing
    • Load contexts and discover related content
    • List contexts with filtering by tags
    • Delete contexts
    • Query available models

Installation

npm install context-processor

Building

npm run build

Running

npm start

Or in development mode:

npm run dev

Configuration

Models Configuration

Create a context-models.json file in the project root to define custom models:

{
  "models": [
    {
      "name": "my_model",
      "description": "My custom context model",
      "strategies": [
        {
          "name": "clarify",
          "type": "clarify",
          "enabled": true,
          "config": {}
        },
        {
          "name": "search",
          "type": "search",
          "enabled": true,
          "config": {
            "maxKeywords": 10
          }
        }
      ]
    }
  ]
}

Available Tools

save_context

Save content as context with optional pre-processing.

Parameters:

  • title (string, required): Title for the context
  • content (string, required): Content to save
  • tags (string[], optional): Tags for organizing context
  • metadata (object, optional): Additional metadata
  • modelName (string, optional): Context model to use for pre-processing

Example:

{
  "title": "API Documentation",
  "content": "This is an API with multiple endpoints...",
  "tags": ["api", "documentation"],
  "metadata": { "version": "1.0" },
  "modelName": "comprehensive"
}

load_context

Load a previously saved context and discover related contexts.

Parameters:

  • contextId (string, required): ID of the context to load

Response:

{
  "context": { /* ContextItem */ },
  "relatedContexts": [ /* ContextItem[] */ ]
}

list_contexts

List all saved contexts with optional filtering.

Parameters:

  • tags (string[], optional): Filter by tags
  • limit (number, optional): Maximum number of contexts
  • offset (number, optional): Number of contexts to skip

list_models

List all available context models.

Response:

{
  "models": [
    {
      "name": "clarify",
      "description": "Model focused on clarifying content",
      "strategyCount": 1
    }
  ],
  "total": 5
}

get_model_info

Get detailed information about a specific model.

Parameters:

  • modelName (string, required): Name of the model

delete_context

Delete a context by ID.

Parameters:

  • contextId (string, required): ID of the context to delete

Processing Strategies

Clarify Strategy

Analyzes content for:

  • Ambiguous pronouns (it, this, that)
  • Passive voice usage
  • Vague language (basically, kind of, sort of)

Provides a clarity score and suggestions for improvement.

Search Strategy

  • Extracts 10 most frequent meaningful keywords
  • Filters out common stop words
  • Recommends search queries for the content

Analyze Strategy

Provides metrics:

  • Word count and average word length
  • Sentence and paragraph counts
  • Content complexity assessment (low/medium/high)

Fetch Strategy

  • Detects URLs in content
  • Identifies up to 5 external references
  • Metadata about data sources

Storage

Contexts are stored as JSON files in the ./contexts directory. Each context file is named using its UUID:

contexts/
├── a1b2c3d4-e5f6-7g8h-9i0j-1k2l3m4n5o6p.json
├── b2c3d4e5-f6g7-h8i9-j0k1-l2m3n4o5p6q.json
└── ...

Example Usage

Saving a context with comprehensive processing:

{
  "title": "User Authentication Design",
  "content": "The authentication system basically allows users to log in with their credentials. This approach is generally more secure than storing passwords in plain text. That said, the system needs better error handling.",
  "tags": ["security", "authentication"],
  "modelName": "comprehensive"
}

This will:

  1. Clarify the vague language
  2. Analyze the content structure
  3. Extract key topics (authentication, security, passwords, etc.)
  4. Save all results to context storage

Loading and discovering related contexts:

{
  "contextId": "a1b2c3d4-e5f6-7g8h-9i0j-1k2l3m4n5o6p"
}

Returns the saved context plus up to 5 related contexts that share tags.

Architecture

ContextMCPServer
├── ContextStorage: File-based persistence
├── ContextPreprocessor: Strategy execution engine
└── MCP Protocol Handler: Tool definitions and execution

Data Flow

User Request
    ↓
MCP Server (Tool Handler)
    ↓
ContextPreprocessor (if model specified)
    ├─→ Strategy 1 (Clarify)
    ├─→ Strategy 2 (Analyze)
    └─→ Strategy 3 (Search)
    ↓
ContextStorage (Save/Load)
    ↓
Response

Development

Type Definitions

All types are defined in src/types.ts:

  • ContextItem: Core context data structure
  • PreProcessingStrategy: Strategy configuration
  • ContextModel: Model definition
  • Request/Response types for each tool

Adding Custom Strategies

  1. Define the strategy type in types.ts
  2. Add a handler method in ContextPreprocessor
  3. Add the strategy to a model in context-models.json

Example:

private customStrategy(
  content: string,
  config?: Record<string, unknown>
): PreProcessingResult {
  // Your custom logic here
  return {
    strategy: "custom",
    processed: true,
    result: transformedContent,
  };
}

File Structure

.
├── src/
│   ├── index.ts           # Main MCP server
│   ├── types.ts           # Type definitions
│   ├── storage.ts         # Context persistence
│   └── preprocessor.ts    # Processing strategies
├── contexts/              # Stored contexts (auto-created)
├── dist/                  # Compiled output
├── context-models.json    # Model configurations
├── package.json           # Dependencies
└── tsconfig.json          # TypeScript config

Testing

Run the built-in tests:

npm test

Future Enhancements

  • Database backend support (MongoDB, PostgreSQL)
  • Vector embeddings for semantic search
  • Machine learning-based categorization
  • Multi-user context sharing
  • Version control for contexts
  • Integration with external APIs
  • Real-time collaboration features

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.