Matías Context MCP
Click on "Install 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., "@Matías Context MCPshow me the catalog of sources"
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.
Matías Context MCP
A thin, local, read-only MCP gateway over an existing ecosystem of governed context documents and producer manifests.
The gateway exposes logical resources through MCP without granting arbitrary filesystem access or duplicating the source systems' contracts.
Why this exists
The underlying systems already produce and govern:
context-source metadata;
integration contracts;
run records;
manifests;
evidence-selection artifacts;
provenance and checksums.
Before this gateway, every AI client needed repository-specific path knowledge and custom adapters.
This project adds a narrow MCP interface:
MCP client
→ logical resource URI
→ registry lookup
→ authorization
→ canonical path containment
→ bounded read
→ normalization
→ provenance-rich responseThe source repositories remain authoritative.
Related MCP server: Synapse
Current status
resource-only v0.1 MVP: CLOSED
Working:
Python MCP server over local
stdio;MCP initialization and capability negotiation;
resources capability only;
generated four-source catalog;
source descriptors;
governed context-document reads;
explicit logical-document mappings;
canonical root-containment checks;
symlink-escape rejection;
bounded UTF-8 Markdown and JSON reads;
SHA-256, size, authority and modification metadata;
deterministic domain errors;
real read from KB Contracts;
everyday and acceptance-probe MCP clients over real
stdiosessions;no tools, prompts, writes or arbitrary filesystem access.
Resource namespace
matias-context://catalog/sources
matias-context://source/{source_id}
matias-context://source/{source_id}/document/{document_id}
matias-context://manifest/{producer_id}/{manifest_id}The client never supplies or receives a physical filesystem path.
Integrated systems
Source | Gateway role |
Context Routing | Published routing projection |
KB Contracts | Authoritative integration contracts |
Knowledge Inspect | Run and manifest producer |
KB Artifacts | Governed evidence-selection producer |
Trust boundary
The gateway is structurally read-only.
It does not provide:
raw path parameters;
recursive directory browsing;
arbitrary filesystem reads;
shell or subprocess execution;
SQL;
vector-store access;
repository mutations;
manifest repair;
pipeline execution;
prompts, tools, sampling or elicitation;
HTTP transport or cloud deployment.
Every filesystem-backed read passes through:
strict URI parsing;
registry lookup;
explicit logical mapping;
canonical path resolution;
root-containment validation;
regular-file and format checks;
size enforcement;
bounded binary reading;
strict UTF-8 and format normalization.
Requirements
Python 3.10+
MCP Python SDK 1.28.1
local checkouts of the configured sources
Installation
python3 -m pip install -e '.[dev]'Configuration
The server reads a server-owned JSON mount configuration:
export MATIAS_CONTEXT_GATEWAY_CONFIG="$PWD/config/sources.example.json"
export CONTEXT_ROUTING_ROOT="$HOME/repos/context"
export KB_CONTRACTS_ROOT="$HOME/repos/kb-contracts"
export KNOWLEDGE_INSPECT_ROOT="$HOME/repos/knowledge-inspect"
export KB_ARTIFACTS_ROOT="$HOME/repos/gpt-digests"These roots are operator configuration. They are not MCP client roots and cannot be changed by a client.
Run the server
python3 -m matias_context_mcpThe server uses MCP over stdio. Protocol traffic is the only permitted output on stdout; operational diagnostics go to stderr.
Read resources from the shell
mctx is the everyday client. Each command starts the configured server, initializes a real MCP session, performs one resource operation, and prints formatted JSON to stdout:
mctx list
mctx templates
# Catalog and source descriptor
mctx read 'matias-context://catalog/sources'
mctx read 'matias-context://source/kb-contracts'
# Governed context document
mctx read \
'matias-context://source/knowledge-inspect/document/artifact-surface'
# Producer manifests (replace IDs with configured, existing run IDs)
mctx read \
'matias-context://manifest/knowledge-inspect/2026-07-27T180000Z'
mctx read \
'matias-context://manifest/kb-artifacts/selection-2026-07-27T180000Z'
# Extract the normalized document body
mctx read \
'matias-context://source/knowledge-inspect/document/artifact-surface' \
| jq -r '.data.text'
# Ordinary shell redirection remains available to the operator
mctx read 'matias-context://catalog/sources' > catalog.jsonSuccessful resource envelopes go to stdout; diagnostics, server logs, and structured failures go to stderr. The client itself does not create output files—the final example uses shell redirection explicitly.
Diagnostic and acceptance clients
The three command surfaces have deliberately different purposes:
scripts/read_resource.py
direct kernel diagnostic
mctx
everyday real-MCP client
scripts/probe_mcp.py
full acceptance and evidence probeFor a direct kernel diagnostic:
python3 scripts/read_resource.py \
'matias-context://catalog/sources'
python3 scripts/read_resource.py \
'matias-context://source/kb-contracts/document/manual-overview'For the acceptance and evidence probe:
python3 scripts/probe_mcp.py \
--output-dir artifacts/mvp-evidenceThe probe records machine-readable initialization, capabilities, listed resources, templates, successful reads and rejection evidence.
Tests
python3 -m pytest -qArchitecture
Thin MCP facade
|
v
Resource kernel
├── frozen exposure profile
├── source registry
├── URI resolver
├── policy gate
├── bounded filesystem adapter
└── normalizer
|
v
Explicitly mounted source rootsThe kernel does not import MCP SDK types and can be reused by a CLI or another transport.
Design choices
resources before tools;
local
stdiobefore remote transport;explicit mappings before dynamic discovery;
producer-owned manifests before a universal gateway schema;
bounded reads before broad format support;
fail closed rather than guess;
thin adapter rather than a new knowledge platform.
Related systems
KB Contracts: https://github.com/matuteiglesias/kb-contracts
Knowledge Inspect: https://github.com/matuteiglesias/knowledge-inspect
KB Artifacts: https://github.com/matuteiglesias/gpt-digests
Portfolio summary
Designed and implemented a read-only MCP gateway over an existing ecosystem of governed context sources and producer manifests. The gateway uses logical resource URIs, explicit allowlists, canonical path containment, bounded reads, provenance-rich responses and a transport-independent kernel. It is validated end to end with a real MCP client over local stdio, including capability negotiation and unauthorized-access rejection.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server that allows AI models to safely access and interact with local file systems, enabling reading file contents, listing directories, and retrieving file metadata.Last updated4110MIT
- Alicense-qualityDmaintenanceA project-agnostic MCP server that exposes Markdown documentation from a project's /docs folder as MCP resources for AI agents. It provides stable, up-to-date context to reduce hallucinations and ensure agents remain aligned with project-specific conventions and goals.Last updated52MIT
- Alicense-qualityDmaintenanceA sandboxed, read-only MCP server that safely exposes system metrics, container diagnostics, and logs to AI agents with intelligent context compression and strict security measures.Last updatedMIT
- Alicense-qualityBmaintenanceA read-only MCP server that provides AI agents with live, structured workspace awareness, including project listing, git status, and budgeted context packing, minimizing token usage.Last updated332MIT
Related MCP Connectors
Read-only Remote MCP for externally grounded AI agent trust receipts.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
The personal context layer for AI: your profile and files, read by any MCP client over OAuth.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/matuteiglesias/matias-context-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server