geonetwork-mcp
MCP server for discovering and accessing data from a GeoNetwork 4.x catalog. Enables an AI assistant to search metadata records, view details, and discover services (WMS, WFS, downloads, etc.) referenced in the catalog.
README
geonetwork-mcp
Serveur MCP pour la découverte et l'accès aux données d'un catalogue GeoNetwork 4.x.
Permet à un assistant IA de rechercher des fiches de métadonnées, consulter leurs détails et découvrir les services (WMS, WFS, téléchargements...) référencés dans le catalogue.
Les réponses de l'API GeoNetwork sont converties en CatalogRecord (modèle pivot de geonetwork-ui) via la librairie @geonetwork-ui/metadata-converter.
Installation
npm install
npm run build
Configuration MCP
{
"mcpServers": {
"geonetwork": {
"command": "node",
"args": ["/chemin/vers/geonetwork_mcp/dist/index.js"],
"env": {
"GEONETWORK_URL": "https://example.org/geonetwork"
}
}
}
}
L'URL peut aussi être passée en argument CLI :
node dist/index.js https://example.org/geonetwork
Tools
search_records
Rechercher des fiches de métadonnées dans le catalogue.
| Paramètre | Type | Description |
|---|---|---|
query |
string | Texte libre (titre, résumé, mots-clés) |
type |
string | Type de ressource : dataset, series, service, map |
organization |
string | Filtrer par nom d'organisation |
bbox |
string | Emprise géographique west,south,east,north (EPSG:4326) |
from |
number | Index de départ pour la pagination (défaut: 0) |
size |
number | Nombre de résultats (défaut: 20, max: 100) |
get_record
Consulter les métadonnées complètes d'une fiche : titre, résumé, mots-clés, contacts, contraintes, généalogie, emprise spatiale et temporelle, catégories thématiques.
| Paramètre | Type | Description |
|---|---|---|
uuid |
string | UUID de la fiche |
get_record_resources
Lister les ressources associées à une fiche, groupées par usage (classification via getUsagesForLink de geonetwork-ui) :
- Services / API — WFS, OGC Features, ESRI REST...
- Services cartographiques — WMS, WMTS, TMS
- Données géographiques — GeoJSON, Shapefile, GeoPackage...
- Données tabulaires — CSV, Excel, JSON
- Téléchargements — fichiers téléchargeables
- Autres liens — pages d'information, documentation
| Paramètre | Type | Description |
|---|---|---|
uuid |
string | UUID de la fiche |
Architecture
src/
├── index.ts # Entry point (stdio transport)
├── server.ts # McpServer + enregistrement des tools
├── api/
│ └── client.ts # GeoNetworkClient (wrapper sur la lib)
└── tools/
├── search-records.ts
├── get-record.ts
└── get-record-resources.ts
lib/
└── metadata-converter/ # @geonetwork-ui/metadata-converter
└── ... # Modèle CatalogRecord, converter GN4, link utilities
Développement
npm run dev # tsc --watch
npm run test # vitest
Prérequis
- Node.js >= 18
- Un catalogue GeoNetwork 4.x accessible en réseau
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.