AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified Apache-2.0 Self-run

Context Mcp Server

mcp-contextenginehq-context-mcp-server · by contextenginehq

MCP server exposing context tools over JSON-RPC 2.0 stdio transport

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add mcp-contextenginehq-context-mcp-server

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-contextenginehq-context-mcp-server)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
7mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Context Mcp Server? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

mcp-context-server

[](https://crates.io/crates/mcp-context-server) [](https://docs.rs/mcp-context-server) [](LICENSE)

> mcp-context-server exposes a deterministic context resolution engine to AI agents via the Model Context Protocol (MCP). It enables agents to retrieve reproducible, auditably-selected context from local documentation without network dependencies.

mcp-context-server is the primary integration surface for agents on the Context platform.

Architecture

The MCP server is a thin protocol adapter over the deterministic context engine.

Agent → MCP client → mcp-context-server → context-core → context cache

  • context-core performs deterministic selection
  • The server provides a stable JSON-RPC interface
  • No network calls or external services are required
  • Designed for on-premise and air-gapped environments

Creating caches

Caches are created using the context CLI:

context build --sources ./docs --cache ./caches/my-cache

See the context-cli repository for details.

Tools

| Tool | Description | |------|-------------| | context.resolve | Resolve context from a cache using a query and token budget | | context.list_caches | List available context caches under the server's cache root | | context.inspect_cache | Inspect cache metadata and validity |

Configuration

The server is configured via environment variables:

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | CONTEXT_CACHE_ROOT | yes | — | Root directory containing context caches | | CONTEXT_TOOL_TIMEOUT_SECS | no | 30 | Maximum seconds per tool call |

Running

CONTEXT_CACHE_ROOT=./caches ./dist/mcp-context-server

The server reads JSON-RPC requests from stdin and writes responses to stdout. It is designed to be launched by an MCP client (e.g., Claude Desktop, an agent framework).

MCP client configuration

For Claude Desktop, add to your MCP config:

{
  "mcpServers": {
    "context": {
      "command": "/path/to/mcp-context-server",
      "env": {
        "CONTEXT_CACHE_ROOT": "/path/to/your/caches"
      }
    }
  }
}

Protocol

  • Transport: stdio (JSON-RPC 2.0, newline-delimited)
  • Protocol version: 2024-11-05
  • All responses are deterministic
  • Error codes: cache_missing, cache_invalid, invalid_query, invalid_budget, io_error, internal_error

Determinism Guarantees

For identical inputs (cache contents, query, and budget), the server guarantees:

  • Byte-identical responses
  • Stable document ordering
  • Stable floating-point representations
  • No hidden state across requests

Determinism is enforced by a compatibility test harness across versions and platforms.

Failure Semantics

  • Tool errors return structured MCP error responses
  • The server never panics for user-input errors
  • IO failures are reported as io_error
  • Invalid caches are reported as cache_invalid

Build

make build     # debug build
make test      # run all tests (31 tests including 11 golden snapshot tests)
make check     # cargo check + clippy
make release   # optimized build, binary copied to dist/
make clean     # remove artifacts

The release binary is named mcp-context-server and placed in dist/.

Spec references

See spec_refs.md for links to the governing specifications.


"Context Engine" is a trademark of Context Engine Contributors. The software is open source under the [Apache License 2.0](LICENSE). The trademark is not licensed for use by third parties to market competing products or services without prior written permission.

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.