Skip to main content
Glama
Onisep Open Data MCP Server

Onisep Open Data MCP Server

by KS-GEN-AI

Onisep Open Data MCP Server

Talk to Onisep Open Data API

This is a TypeScript-based MCP server that provides tools to interact with the Onisep Open Data API. It provides access to educational datasets and training information from the French National Office for Information on Education and Careers (Onisep).

Features

  • Transparent Authentication: Works in non-authenticated mode by default (limited quota for testing)

  • Optional Authentication: Set environment variables for higher quotas and authenticated access

  • Pagination Support: All tools support pagination to handle large datasets efficiently

  • Rate Limiting: Built-in response size limits to prevent memory saturation

  • Dataset Discovery: Browse and search through available educational datasets

  • Data Search: Search within specific datasets with advanced filtering options

Related MCP server: mcp-data-gouv-fr

Onisep API Tools

list_catalogs

  • Purpose: List all available datasets/catalogs from Onisep Open Data API.

  • Parameters:

    • query (optional): Search query to filter datasets by name or description

    • from (optional): Index of the first result to return (pagination, default: 0)

    • size (optional): Maximum number of results to return (max 1000, default: 10)

    • sort (optional): Field to sort by (e.g., "name" or "-name" for descending)

Example usage:

{
  "query": "formation",
  "size": 20,
  "sort": "-name"
}

get_dataset_info

  • Purpose: Get detailed information about a specific dataset by its code.

  • Parameters:

    • dataset_code (required): The code of the dataset (e.g., "57daa24b35d4d")

Example usage:

{
  "dataset_code": "57daa24b35d4d"
}

search_dataset

  • Purpose: Search within a specific dataset using filters and pagination.

  • Parameters:

    • dataset_code (required): The code of the dataset to search in

    • query (optional): Search query string

    • from (optional): Index of the first result to return (pagination, default: 0)

    • size (optional): Maximum number of results to return (max 1000, default: 10)

    • sort (optional): Field to sort by (e.g., "field" or "-field" for descending)

    • facets (optional): Facet filters as key-value pairs (e.g., {"region": "Ile-de-France"})

Example usage:

{
  "dataset_code": "57daa24b35d4d",
  "query": "bachelor",
  "facets": { "region": "Ile-de-France" },
  "size": 50
}

list_licenses

  • Purpose: List all available licenses from Onisep Open Data API.

  • Parameters:

    • sort (optional): Field to sort by (e.g., "title" or "-title" for descending)

get_license_info

  • Purpose: Get detailed information about a specific license.

  • Parameters:

    • license_id (required): The ID of the license

Authentication

The server works in non-authenticated mode by default, which provides limited quotas suitable for testing and development. For production use with higher quotas, you can optionally set up authentication:

Non-Authenticated Mode (Default)

No configuration required - works out of the box with limited quotas for testing.

Authenticated Mode (Optional)

Set these environment variables for higher quotas:

export ONISEP_EMAIL="your-email@example.com"
export ONISEP_PASSWORD="your-password"
export ONISEP_APPLICATION_ID="your-application-id"

To get credentials:

  1. Create a developer account on the Onisep Open Data platform

  2. Use the credentials in the environment variables above

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "Onisep communication server": {
      "command": "node",
      "args": ["/PATH_TO_THE_PROJECT/build/index.js"],
      "env": {
        "ONISEP_EMAIL": "your-email@example.com",
        "ONISEP_PASSWORD": "your-password",
        "ONISEP_APPLICATION_ID": "your-application-id"
      }
    }
  }
}

Note: No environment variables are required for basic usage. Add them only if you need higher quotas.

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

API Limits and Best Practices

  • Non-authenticated requests: Very limited quota (typically 5 requests per day)

  • Authenticated requests: Higher quotas based on your account

  • Response size limits: Maximum 1000 results per request to prevent memory issues

  • Pagination: Use from and size parameters to navigate large datasets

  • Rate limiting: The API may change quotas at any time - implement local caching for production use

License

This project is licensed under the same terms as the Onisep Open Data (ODBL license).

Available Tools

6 tools
get_catalog_detailA

Get comprehensive metadata and complete field descriptions for a specific dataset, including detailed schema information, data types, validation rules, and complete field documentation. Similar to get_dataset_info but returns more detailed technical information. Use include_long_fields=true to get complete field descriptions at the cost of slower performance.

Inputs: dataset_code (required), include_long_fields.

get_dataset_infoA

Get detailed metadata and schema information about a specific dataset including field descriptions, data types, geographic coverage, update frequency, and record counts. METHODOLOGY: Use this tool SECOND after finding a promising dataset in list_catalogs. Check the record count (higher = more data), geographic coverage (national vs regional), and field descriptions to understand what types of data are available before searching.

Inputs: dataset_code (required).

get_license_infoA

Get detailed information about a specific data license including terms of use, attribution requirements, and legal constraints. Essential when using Onisep data in applications to ensure compliance with licensing terms.

Inputs: license_id (required).

list_catalogsA

List all available datasets/catalogs from Onisep Open Data API containing educational data (training programs, schools, certifications). METHODOLOGY: Use this tool FIRST to discover available datasets. Search by keywords like "formation", "BTS", "lycee", "apprentissage", or region names. Look for datasets with high record counts and appropriate geographic coverage (national for broad searches, regional for local searches).

Inputs: from, size, sort, query.

list_licensesA

List all available data licenses used by Onisep Open Data API. Useful for understanding data usage rights and legal constraints when using the retrieved information. Most Onisep data uses ODBL (Open Database License) or standard open licenses.

Inputs: sort.

search_datasetA

Search for educational programs, schools, or certifications within a specific dataset. METHODOLOGY: Use this tool THIRD after selecting the right dataset. For training programs: use query="BTS commerce", query="ingenieur", etc. For location: use facets={"ens_commune": "Lyon"}, facets={"ens_region": "Ile-de-France"}. For school type: use facets={"ens_statut": "public"}. For education level: use facets={"for_niveau_de_sortie": "bac + 2"}. Always start with broad searches then refine with facets. Returns detailed information including program names, school addresses, contact details, costs, and admission requirements.

Inputs: dataset_code (required), from, size, sort, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation3/5

    Most tools are distinct (list_catalogs for discovery, search_dataset for querying, list_licenses/get_license_info for legal terms), but get_dataset_info and get_catalog_detail overlap heavily — the latter is literally described as 'similar to get_dataset_info but returns more detailed technical information', leaving the agent to guess which to call. The catalog-vs-dataset vocabulary split further blurs whether these are different resources or the same one.

    Naming Consistency4/5

    Every tool follows a clean verb_noun pattern (list_*, get_*_info, search_dataset, get_catalog_detail), so the surface reads predictably. The only wart is inconsistent noun vocabulary — 'catalog' and 'dataset' appear to mean the same thing across list_catalogs, get_catalog_detail, get_dataset_info, and search_dataset.

    Tool Count5/5

    Six tools is well-scoped for an open-data API wrapper: discovery, metadata, search, and licensing each earn their place. Nothing is padded and nothing obviously needs splitting.

    Completeness4/5

    The read-only lifecycle is largely covered — list catalogs, inspect schema, search records, and check license terms. Minor gaps remain: there is no get_record_by_id for fetching a specific result, no facet/value enumeration tool to support the facet-driven search pattern the descriptions promote, and no pagination control surfaced.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching and querying Occitanie Region Open Data (data.laregion.fr) using SQL-like ODSQL, with tools for dataset discovery, metadata retrieval, and record queries.
      65 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables discovery and inspection of French public open data on data.gouv.fr, including datasets, resources, organizations, and dataservices via natural language.
      9
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to search and retrieve French job profiles, RNCP certifications, training programs, training centers, and skills comparisons in read-only mode without requiring an account.
      MIT