hal-mcp
Allows querying the HAL French national open archive: search publications, get full records, compute statistics, export citations, track author production by IdHAL, and search research structures.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hal-mcpFind open-access articles on federated learning since 2023"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hal-mcp
An MCP (Model Context Protocol) server for HAL, the French national open archive (Hyper Articles en Ligne). It lets an AI assistant — Claude, or any MCP-compatible client — query HAL: search publications, compute statistics, export citations, and track a researcher's output.
No API key required. It goes beyond simple search with facets (aggregate statistics), author tracking by IdHAL, and native bibliographic export.
Features (6 tools)
Tool | Description |
| Search with human-friendly filters: year range, document type, open access, full-text availability, sorting. |
| Full record for a single document by its HAL identifier. |
| Export to BibTeX / EndNote / CSV / TEI (via HAL's native |
| Aggregate counts (by year, type, keyword, author) using Solr facets. |
| Complete output of a researcher by IdHAL, with most frequent co-authors optionally. |
| Search for laboratories / research structures. |
Related MCP server: Crossref Academic MCP Server
Requirements
Python 3.10 or newer
The
mcpSDK, version 1.x (see the important note below)
⚠️ Important —
mcpSDK version This server usesFastMCP, which was removed inmcpv2.0.0. The project therefore pinsmcp>=1.2.0,<2.0.0. If you see aFastMCPimport error at startup, v2 was installed by mistake: reinstall withpip install "mcp<2.0.0".
Installation
git clone https://github.com/Arpany-Tech/hal-mcp
cd hal-mcp
pip install -e .Verify it works
1. Check the server starts
python -m hal_mcp.serverThe cursor hangs with no output: this is expected. The server is running
and waiting for MCP messages on standard input. Press Ctrl+C to stop it.
(If you get an error instead, see the mcp SDK note above.)
2. Interactive testing with MCP Inspector
The official tool to explore an MCP server without a full client:
npx @modelcontextprotocol/inspector python -m hal_mcp.serverOpen the printed URL, click Connect, then List Tools: the 6 tools appear. You can call each one by hand and inspect the responses.
3. Test the API layer directly (no MCP)
python3 - << 'PY'
import asyncio
from hal_mcp import client
async def main():
res = await client.search_publications(
"artificial intelligence", year_from=2023,
open_access_only=True, rows=3,
)
print("Total:", res["total"])
for d in res["documents"]:
print("-", d.get("label_s"))
asyncio.run(main())
PYConnect to Claude Desktop
In claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"hal": {
"command": "python",
"args": ["-m", "hal_mcp.server"]
}
}
}Fully restart Claude Desktop. The HAL tools appear in the tools indicator of the message box.
Tip: if Claude Desktop can't find
python, use the full path to your interpreter (e.g.C:\\Python313\\python.exeon Windows) instead of"python"incommand.
Example questions
"Find open-access articles on federated learning since 2023."
"Give me the output of the researcher with IdHAL
dominique-lesselier, with co-authors.""What is the year-by-year breakdown of deep learning publications?"
"Export the 10 most recent publications on transformers to BibTeX."
"Which laboratories work on quantum physics?"
How it works
HAL exposes a search API built on Apache Solr, queryable over HTTP with no
authentication. This server translates human-friendly parameters (year_from,
doc_type, open_access_only...) into Solr syntax (fq, facet, wt...), so
the agent gets a simple interface while still benefiting from Solr's power
(filters, facets, exports).
HAL API documentation: https://api.archives-ouvertes.fr/docs/search
Structure reference: https://api.archives-ouvertes.fr/docs/ref/resource/structure
Architecture
src/hal_mcp/
├── server.py # declares the 6 MCP tools (FastMCP)
├── client.py # calls to HAL's Solr API (httpx)
└── fields.py # constants: Solr fields, document typesThe client.py layer has no MCP dependency: it can be tested in isolation.
Development
Run the tests:
pip install pytest pytest-asyncio
pytest # all tests
pytest -m "not network" # unit tests only (offline, fast)
pytest -m network # integration tests that call HALRoadmap
get_structure_output— output of a given laboratory.Pivot facets (cross type × full-text, year × type).
Range facets (
facet.range) for time-series/evolution charts.Collection / portal filtering exposed as a parameter.
HTTP transport for Claude.ai (connector) and ChatGPT (developer mode).
License
MIT — see the LICENSE file.
Disclaimer
Independent project, not affiliated with the CCSD (which operates HAL). Metadata comes from HAL's public API. Please respect HAL's terms of use and the license of each individual publication.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server for academic paper search that integrates with AI assistants (e.g., Claude Code, Cursor), enabling them to search and retrieve academic paper metadata.237MIT
- AlicenseAqualityDmaintenanceMCP server enabling AI agents to search and retrieve scientific papers, citations, and author profiles from Crossref, OpenAlex, and Semantic Scholar with no API keys required.53MIT
- AlicenseAqualityDmaintenanceMCP server for the OpenAlex scholarly database, providing AI agents with tools to search and retrieve academic works, authors, and institutions via natural language queries.8MIT
- FlicenseAqualityBmaintenanceAI-powered research assistant MCP server for searching academic papers and answering research questions with DOI citations.3
Related MCP Connectors
Academic research MCP server for paper search, citation checks, graphs, and deep research.
MCP server for Altmetric APIs - track research attention across news, policy, social media, and more
Hosted MCP server exposing US hospital procedure cost data to AI assistants
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arpany-Tech/hal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server