EGIPCI MCP Server

EGIPCI MCP Server

MCP server for querying archaeological site information from the EGIPCI service of the Generalitat de Catalunya, enabling AI editors to access Catalan archaeological data.

Category
Visit Server

README

EGIPCI MCP Server

MCP (Model Context Protocol) server for querying archaeological site information from the EGIPCI service (Expedient d'Informació del Patrimoni Cultural Immoble) of the Department of Culture of the Generalitat de Catalunya.

This server allows AI editors like Claude Code, Cursor, and other MCP clients to access archaeological information from Catalunya through the standard MCP protocol.

Note: This package is designed to be used as an MCP server through npx, not as a global installation.

Quick Start

This package is designed as an MCP server - no installation needed! Just configure it in your MCP client.

Usage

MCP Client Configuration

To use this server with an MCP client, add the following configuration to your mcp.json file:

{
  "mcpServers": {
    "gencat-egipci": {
      "command": "npx",
      "args": ["-y", "@d0whc3r/egipci-mcp@latest"],
      "env": {
        "EGIPCI_COOKIE": "your_intranet_cookie_value_here"
      }
    }
  }
}

Available Tools

query_egipci_site

Query information for a specific archaeological site.

Parameters:

  • cookie (string, optional): .intranet cookie for EGIPCI authentication. If not provided, the EGIPCI_COOKIE environment variable will be used
  • id (string, required): Archaeological site ID to query

Usage example:

With cookie as parameter:

{
  "name": "query_egipci_site",
  "arguments": {
    "cookie": "your_intranet_cookie_value",
    "id": "12345"
  }
}

With cookie from environment variable:

{
  "name": "query_egipci_site",
  "arguments": {
    "id": "12345"
  }
}

Response: Returns the site information in XML format as provided by the EGIPCI service.

Authentication Methods

Using Environment Variable (Recommended)

The safest and most convenient way is to configure the cookie in the EGIPCI_COOKIE environment variable in the MCP configuration. This has several advantages:

  • Security: The cookie is not exposed in each tool call
  • Convenience: You don't need to pass the cookie in each query
  • Reusability: Single configuration for all queries
  • Maintenance: Easy update when the cookie expires

Using Cookie Parameter

You can also pass the cookie directly as a parameter in each call. This is useful for:

  • Using different cookies for different queries
  • Cases where you cannot configure environment variables
  • Testing and development

Obtaining Authentication Cookie

To obtain the required .intranet cookie:

  1. Go to https://egipci.cultura.gencat.cat/ in your browser
  2. Log in with your credentials
  3. Open developer tools (F12)
  4. Go to the "Application" or "Storage" tab
  5. In "Cookies", look for the .intranet cookie
  6. Copy the cookie value to use as parameter

Error Handling

The server handles various types of errors using the got library:

  • Missing or invalid parameters: Input validation with Zod
  • HTTP errors: Status codes 4xx/5xx using got.HTTPError
  • Network errors: Connectivity issues using got.RequestError
  • Authentication errors: Invalid or expired cookie
  • Format errors: XML response validation

All errors are returned with descriptive messages.

Development

For contributors and developers working on this project:

Requirements

  • Valid .intranet cookie for EGIPCI authentication
  • For development: Node.js >= 18.0.0, pnpm

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured