Freshcontext MCP logo

Freshcontext MCP

by PrinceGabriel-lgtm

Evaluates and ranks retrieved web context by freshness and source to ensure temporally relevant AI reasoning.

Install Freshcontext MCP

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://api.freshcontext.dev/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

This server acts as a context judgment layer between retrieval and reasoning, scoring and ranking candidate context by freshness, source profile, and confidence. It adjusts semantic relevancy by applying decay functions based on document age and source type, preventing stale information from misleading AI agents. Use it when you need temporally accurate, decision-ready context for AI models or agents that consume retrieved documents.

Use cases

  • Evaluate freshness and relevance of retrieved documents before AI reasoning
  • Rank candidate context by temporal decay-adjusted semantic score
  • Wrap retrieved content in a structured envelope with provenance and confidence metadata
  • Integrate with retrieval-augmented generation (RAG) pipelines to reduce stale context hallucination
  • Provide AI agents with decision-ready, temporally validated context

Key features

  • Decay-adjusted relevancy scoring based on source-specific half-life constants
  • Source profiling for different content classes (e.g., academic, blogs, HN)
  • Structured FreshContext envelope wrapping context with timestamps and confidence
  • Decision-first output including decision, rank, utility, confidence, and explanations
  • Reference MCP interface with named adapters and live demo
  • Core library exports for signal evaluation and scoring

Tools22

What Freshcontext MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/17 checks healthy over the last 111d

What it can do

From the 22 tools this server returned when we ran it.

Makes changes · 1Makes network requests · 7Read-only tools · 21

Observed 2026-11-28 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars12Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Tools exposed22Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

FreshContext

This package is no longer developed. 0.5.3 is the last release of freshcontext-mcp. It and every earlier release stay available under the MIT License, as is; there will be no further feature releases. For FreshContext services, see https://freshcontext.dev. Security reports: see SECURITY.md.

I asked Claude to help me find a job. It gave me a list of openings. I applied to three of them. Two didn't exist anymore. One had been closed for two years.

Claude had no idea. It presented everything with the same confidence.

That's the problem freshcontext fixes.

This repository is the integrated FreshContext Core/MCP package.

Category: context integrity infrastructure. FreshContext sits between context acquisition and agent action. Its job is to decide whether information entering an AI workflow is still fresh, attributable and coherent enough for the system to rely on. Core is the reusable engine that scores, ranks, explains and turns candidate context into decision-ready context, with signed verdicts recorded in a verifiable ledger. MCP is the first live host interface over that engine — one interface over the methodology, not the product itself.

npm version License: MIT MCP Registry

Live demo: api.freshcontext.dev/demo — same model, same query, two completely different answers. Only the temporal layer changed.

Integrate it into an existing stack: freshcontext.dev/integration — start with one bounded RAG, agent, retrieval, or governance workflow and objective acceptance criteria.


The problem

Large language models retrieve web data semantically. Cosine similarity finds the documents that match a query best — but cosine doesn't know when a document was written.

So a 2022 blog post and a 2026 paper can score nearly identically. The model gets a context window full of stale documents and faithfully summarizes 2022 advice for a 2026 question.

That's not hallucination. That's correct summarization of corrupted retrieval.

Most RAG pipelines rank context correctly semantically but incorrectly temporally.


The layer

FreshContext is context integrity infrastructure for AI agents and retrieval systems. It sits between retrieval and reasoning:

text
candidate context
  -> FreshContext Core
  -> decision-ready context
  -> model / agent / app

FreshContext evaluates freshness, source profile, confidence, utility, provenance material, and failure honesty before context reaches the LLM. The temporal core uses Decay-Adjusted Relevancy:

Code
R_t = R_0 · e^(−λt)
  • R_0 — base semantic relevancy (whatever your retriever already gives you)
  • λ — source-specific decay constant (HN ≈14h half-life, blogs ≈29d, academic papers ≈1.6y)
  • t — hours elapsed since publication
  • R_t — decay-adjusted relevancy at query time

That's the core correction. No model swap. No re-embedding. No re-indexing. The layer drops onto whatever retrieval pipeline you already have.

The layer is the product. The named adapters shipped with this repo demonstrate compatibility across different source classes. The DAR engine, the freshness envelope, Source Profiles, and the FreshContext Specification are the moat.


The standard

Every FreshContext-compatible response wraps content in a structured envelope:

Code
[FRESHCONTEXT]
Source: https://github.com/owner/repo
Published: 2024-11-03
Retrieved: 2026-03-05T09:19:00Z
Confidence: high
---
... content ...
[/FRESHCONTEXT]

When it was retrieved. Where it came from. How confident we are the date is accurate.

The FreshContext Specification v1.2 is published as an open standard under MIT licence. Any tool, agent, or system that wraps retrieved data in this envelope is FreshContext-compatible. → Read the spec · Read the methodology


Architecture boundary

FreshContext Core is the reusable center of the current integrated package. It owns signal normalization, freshness scoring, Source Profiles, decision output, envelope formatting, failure guards, shared types, rank/explain primitives, and the context-conditioned utility primitive.

MCP is the primary reference/interface implementation over Core. Claude Desktop is supported, but not required. The MCP tool surface exposes named reference adapters and a live interface for using the system.

The production Cloudflare Worker now uses Core-backed envelope generation. Worker-specific concerns remain outside Core: MCP transport, runtime guards, KV cache policy, cache metadata injection, JSON parse/replace cache helpers, D1 feeds, cron, rate limiting, and Store/feed scoring/provenance.

See Architecture for the layer boundaries, the package surface, and what is not yet separated.

Core import path

FreshContext Core is also available directly from the current MCP package:

server.ts
import {
  evaluateSignals,
  interpretEvaluations,
  getSourceProfile,
  normalizeSignal,
  calculateHaPriV2,
} from "freshcontext-mcp/core";

This is a Core subpath export inside freshcontext-mcp, not a standalone freshcontext-core package yet. The root package and freshcontext-mcp binary remain the MCP reference host.


Primary MCP interface

The clearest MCP path is evaluate_context.

It accepts candidate context from any retriever, agent, database, local script, note parser, or adapter output:

config.json
{
  "profile": "academic_research",
  "intent": "citation_check",
  "signals": [
    {
      "title": "Example source",
      "content": "Candidate context text...",
      "source": "https://example.com/source",
      "source_type": "arxiv",
      "published_at": "2026-05-24T12:00:00.000Z",
      "retrieved_at": "2026-05-24T13:00:00.000Z",
      "semantic_score": 0.92
    }
  ]
}

FreshContext returns decision-first output:

  • Decision
  • Meaning
  • Action
  • Warnings
  • Source
  • Freshness
  • Rank score
  • Utility
  • Confidence
  • Why

Structured results also include a readable object for humans:

config.json
{
  "decision": "cite_as_primary",
  "label": "Cite as primary",
  "readable": {
    "label": "Primary source",
    "summary": "This source is strong enough to use as main evidence.",
    "why": [
      "Strong semantic match and current freshness for arxiv.",
      "source profile academic_research uses lenient date policy",
      "intent profile citation_check selected"
    ],
    "action": "Use this as main evidence while preserving citation and provenance.",
    "warnings": [
      "FreshContext judges citation readiness and context usefulness; it does not certify truth."
    ]
  }
}

The readable object translates Core decisions into user-facing language. It does not change ranking, decision labels, utility scoring, or source intake. Utility helps explain usefulness for the current question; it remains explanatory and does not control default decision labels or ranking.

FreshContext does not certify truth. It records why context was used, supported, questioned, refreshed, watched, or excluded before it reaches a model.

evaluate_context does not fetch URLs, crawl, scrape, browse, read folders, or call adapters. It only evaluates candidate context the caller provides.

Current boundary: evaluate_context ships in the npm/local stdio MCP server. The hosted Cloudflare Worker MCP endpoint is a separate deployment surface and is verified independently — check /v1/health for its live version and tool count rather than assuming parity with the package. The Worker remains a separate deployment surface, so future package interfaces should be re-verified remotely before being claimed live.

Network Boundary

FreshContext's primary evaluate_context path does not fetch, crawl, scrape, browse, read folders, or call adapters. The MCP package also includes read-only reference adapters that use network access only when those adapter tools are invoked. Supply-chain scanners may therefore report package network access; that applies to the optional adapter surface, not to caller-provided context evaluation.


Advanced Worker/feed surface

Beyond the per-call Core/MCP paths, the production Worker deployment exposes a continuous, decay-scored, deduplicated feed. This is an advanced deployment surface, not the required way to use FreshContext Core:

Code
GET /v1/intel/feed/:profile_id?limit=20&min_rt=0

Every signal is stamped with base_score, rt_score, entropy_level (low / stable / high), ha_pri_sig (Ha-Pri v1 SHA-256 provenance reference), semantic_fingerprint (cross-adapter dedup), and published_at. Ready for direct LLM or agent consumption — no synthesis required.

Production endpoint: https://api.freshcontext.dev


Reference adapters

The repo ships named reference adapters that demonstrate how different source classes can become FreshContext-compatible. Each adapter keeps its own name because it represents a source boundary; the adapter count is operational proof, not the product headline.

Intelligence

AdapterWhat it returns
extract_githubREADME, stars, forks, language, topics, last commit
extract_hackernewsTop stories or search results with scores and timestamps
extract_scholarResearch papers — titles, authors, years, snippets
extract_arxivarXiv papers via official API
extract_redditPosts and community sentiment from any subreddit

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Freshcontext MCP

It prevents AI models from using stale documents by adjusting relevancy scores based on document age and source, ensuring temporally accurate context.

It applies a decay function R_t = R_0 · e^(−λt), where λ is a source-specific decay constant and t is elapsed time since publication.

Yes, it accepts candidate context from any retriever or agent and produces decision-ready context for downstream use.

A structured wrapper around content that includes source URL, publication and retrieval timestamps, and confidence level.

Core functionality is exported as a subpath inside the MCP package but not yet as a standalone package.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFreshcontext MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/princegabriel-lgtm-freshcontext-mcp?style=directory)](https://allmcps.com/mcp/princegabriel-lgtm-freshcontext-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/princegabriel-lgtm-freshcontext-mcp"><img src="https://allmcps.com/api/badge/princegabriel-lgtm-freshcontext-mcp?style=directory" alt="Freshcontext MCP on AllMCPs" /></a>