contexte
Officialcontexte
Load resources from ContexteTech — datasets, prompts, few-shot contexts — in one line of Python. No dependencies.
pip install contexteimport contexte
# Dataset: rows as dicts (JSONL messages)
ds = contexte.load("contextetech/anonymisation-rgpd-fr")
print(len(ds), ds[0]["messages"][1]["content"])
# Prompt with {{variables}}
p = contexte.load("contextetech/fiche-produit-ecommerce")
print(p.variables) # ['produit', 'caracteristiques', 'public']
text = p.fill(produit="Casque audio", caracteristiques="Bluetooth, 30 h", public="étudiants")
# Few-shot context, ready for any chat API
c = contexte.load("contextetech/anonymisation-rgpd")
system = c.system_prompt()
messages = c.messages("Bonjour, je suis Jean Martin, 06 11 22 33 44.")
# Load by short code (end of the resource URL, e.g. …/fiche-produit-ecommerce-jr6t0n)
p = contexte.load("jr6t0n")
# Search and cost
contexte.search("rgpd", kind="dataset")
contexte.cost("contextetech/anonymisation-rgpd") # estimated cost per model, in eurosCommand line
contexte get jr6t0n # saves fiche-produit-ecommerce.json in the current folder
contexte get contextetech/anonymisation-rgpd-fr -o data/
contexte search rgpd --kind datasetA resource is referenced as author/name, by its short code (end of its URL), or by its identifier. Read-only, no account needed.
Related MCP server: Datos.gob.es-MCP
MCP server
Use the catalogue from an AI assistant (ChatGPT, Claude, Cursor, VS Code…).
Online, nothing to install — add this URL as a connector (Streamable HTTP, no authentication):
https://contextetech.com/mcpLocal — the same server from this package, which can also save whole datasets to files:
{ "mcpServers": { "contexte": { "command": "uvx", "args": ["contexte@latest", "mcp"] } } }Tools (local server): search_resources (search the catalogue), load_resource (load a resource by short code: dataset rows, prompt template, context), fill_prompt (fill a prompt's {{variables}}), download_dataset (save a whole dataset as JSONL, OpenAI messages, ShareGPT, Alpaca or CSV), estimate_cost (tokens and euros per model). All read-only except download_dataset, which writes a file and never overwrites one. Stdio transport, no dependencies, no key. The online server offers the same read-only tools, with get_download_link instead of download_dataset.
Full guide: https://contextetech.com/en/docs/mcp
License
MIT. The ContexteTech name and logos are trademarks and are not covered by this license.
Available Tools
5 toolsdownload_datasetDownload a dataset to a fileAIdempotent
Save a whole ContexteTech dataset to a local file, ready for fine-tuning or evaluation. Formats: jsonl (original), messages (OpenAI chat), sharegpt, alpaca, csv. Never overwrites an existing file.
Inputs: code (required), path, format.
estimate_costEstimate the costARead-only
Estimated cost of a ContexteTech resource with common AI models (euros): input and output tokens, cost per call or per pass, batch discount, cheapest model; for a dataset, fine-tuning on a rented GPU.
Inputs: code (required).
fill_promptFill a promptBRead-only
Fill a ContexteTech prompt template ({{variable}} placeholders) and return the ready-to-use prompt.
Inputs: code (required), variables (required).
load_resourceLoad a resourceARead-only
Load one ContexteTech resource by short code (e.g. 'jr6t0n') or 'author/name'. Dataset: description, licence and the first rows; prompt: template and variables; context: system prompt and examples.
Inputs: code (required), rows.
search_resourcesSearch the ContexteTech catalogueARead-only
Search the ContexteTech catalogue of AI building blocks: fine-tuning and evaluation datasets (chat, DPO, agent traces), prompts, few-shot contexts, MCP servers, models and more, many grounded in official European sources, in 9 languages. Returns for each match: short code, title, type, language, licence, number of rows (datasets), description and page URL.
Inputs: query (required), type, language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a clearly distinct action: search_resources finds resources, load_resource inspects one, fill_prompt renders prompt templates, download_dataset persists full datasets, and estimate_cost computes pricing. Boundaries are sharp — even the superficially similar load_resource vs download_dataset differ (preview/first rows vs full file export), so an agent can select confidently.
All five names follow a strict snake_case verb_noun pattern (search_resources, load_resource, fill_prompt, download_dataset, estimate_cost). The only variation is plural vs singular nouns, which reflects the actual cardinality semantics rather than an inconsistency.
Five tools is well-scoped for a resource-catalogue server covering discovery, inspection, prompt rendering, dataset export and cost estimation. Every tool earns its place with no redundancy.
The surface covers the core catalogue lifecycle: discover, inspect, use (fill prompts), export datasets and estimate cost. Minor gaps exist — no explicit browse/list-by-type or metadata filtering beyond free search, and no way to fetch a model or MCP server artifact directly — but agents can work around these via search.
Maintenance
Related MCP Connectors
Search and load AI datasets, prompts and few-shot contexts from the ContexteTech catalogue.
Live EU funding data in your AI: grant calls, programmes, consortium partners, VCs, incubators.
- LawbsterDeprecatedio.github.PLANIT-TECH
Verified, citable German & EU law for any LLM. Daily updates from official sources, hosted in DE.
Verified, citable German & EU law for any LLM. Daily updates from official sources, hosted in DE.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAccess to many public datasets right from your LLM application.156MIT
- AlicenseAqualityDmaintenanceEnables querying and analyzing over 90,000 public datasets from the Spanish Government Open Data Portal (datos.gob.es) using natural language, with tools for search, filtering, metadata access, and SPARQL queries.105MIT
- AlicenseAqualityCmaintenanceConnects LLMs to over 2,850 datasets from 13 Catalan and Spanish open data portals, enabling natural language search and real-time queries of public data.8143 npm22MIT
- AlicenseNot gradedqualityCmaintenanceEnables searching and accessing EU open datasets from data.europa.eu, including metadata discovery and dataset retrieval.64 npmMIT