Skip to main content
Glama

contexte

Load resources from ContexteTech — datasets, prompts, few-shot contexts — in one line of Python. No dependencies.

pip install contexte
import 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 euros

Command 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 dataset

A 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/mcp

Local — 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 tools
download_datasetDownload a dataset to a fileA
Idempotent

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 costA
Read-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 promptB
Read-only

Fill a ContexteTech prompt template ({{variable}} placeholders) and return the ready-to-use prompt.

Inputs: code (required), variables (required).

load_resourceLoad a resourceA
Read-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 catalogueA
Read-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

    A3.8/5.0

    Scored across 5 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      10
      5
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Connects 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.
      8
      143 npm
      22
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching and accessing EU open datasets from data.europa.eu, including metadata discovery and dataset retrieval.
      64 npm
      MIT