MCP server for Lacuna, a research map for machine learning: search directions, papers, authors, venues, and AI-generated research proposals.
pip install lacuna-research-mcp==0.6.2 Copy PIP instructions
Lacuna Research MCP gives AI researchers' coding agents:
Lacuna, built by Tiptree Systems, is a research map of machine learning: a heterogeneous knowledge graph linking papers, research directions, authors, venues, institutions, and generated research proposals, with a source trail from every derived object back to the exact paper and page that produced it. Its pipeline reconciles scholarly records from OpenAlex, OpenReview, DBLP, and arXiv; extracts concept elements from paper text and clusters them into research directions (Lacuna paper); and samples novel research proposals from those directions with Alien Science. The map spans more than 730,000 papers, 190,000+ author profiles, 38,000+ research directions, and 3,000+ research proposals built from over 15 million concept elements — and it grows continuously as new arXiv and other AI papers are ingested.
Install · First use · Tools · API reference · Configuration
Use Lacuna's hosted MCP server with any client that supports Streamable HTTP. No local installation is required.
For Team and Enterprise workspaces, the connector must first be added under Organization settings → Connectors. See Claude's custom connector setup for details.
The easiest way to install Lacuna Research MCP is to ask your coding agent, such as Codex or Claude Code:
Install and configure the lacuna-research-mcp package from PyPI for this client.
For manual setup, the instructions below use uvx to run the latest tagged release from PyPI. Install uv first; Lacuna Research MCP requires Python 3.11 or newer.
codex mcp add lacuna-research -- uvx lacuna-research-mcp Alternatively, add the following to ~/.codex/config.toml (or to .codex/config.toml in a trusted project for project-only setup):
[mcp_servers.lacuna-research] command = "uvx" args = ["lacuna-research-mcp"] Run codex mcp list to verify the server is configured. The Codex app, CLI, and IDE extension share this configuration on the same machine.
Add the server for all of your projects with the Claude Code CLI:
claude mcp add --scope user lacuna-research -- uvx lacuna-research-mcp Omit --scope user to add it only to the current project. Alternatively, add the following under the top-level mcpServers object in ~/.claude.json:
{ "mcpServers": { "lacuna-research": { "type": "stdio", "command": "uvx", "args": ["lacuna-research-mcp"] } } } Run claude mcp get lacuna-research to verify the server is configured.
Open Settings → Developer → Edit Config, then add the server under mcpServers in claude_desktop_config.json:
For any client that supports local stdio MCP servers, use this standard configuration:
uv tool install lacuna-research-mcp lacuna-research-mcp Run it without installing a persistent command:
uvx lacuna-research-mcp If this exits with a prerelease error (for example, "Python 3.14.0rc2 is a prerelease..."), your uv is using an early Python 3.14 prerelease that the MCP SDK does not support. Update uv (uv self update), install a released Python (uv python install 3.14), or run uvx --python 3.13 lacuna-research-mcp.
To serve remote MCP clients over Streamable HTTP instead of stdio:
uvx lacuna-research-mcp --transport streamable-http --host 0.0.0.0 --port 8000 The endpoint is /mcp. The server is stateless and answers with JSON, so it can run behind a load balancer without session affinity. With the default --host 127.0.0.1, the server accepts only localhost Host headers, so bind a non-loopback address when a reverse proxy forwards a public hostname.
PyPI contains tagged releases. To try the latest code from the main branch instead:
uvx --from git+https://github.com/tiptreesystems/lacuna-research-mcp.git lacuna-research-mcp Local development With uv:
git clone https://github.com/tiptreesystems/lacuna-research-mcp.git cd lacuna-research-mcp uv sync --extra dev uv run lacuna-research-mcp With pip:
cd python3 -m venv .venv . .venv/bin/activate python -m pip install -U pip python -m pip install -e . First use After connecting the server, call:
The corpus covers machine learning and AI research: papers, research directions, authors' research output, venues, institutions, generated research hypotheses, and research resources (GitHub repositories, Hugging Face datasets and models, Zenodo records) linked to papers. It does not contain biographies, news, or non-research web content. Agents should answer questions outside that scope from other sources.
For id-or-URL arguments, pass either the raw id returned by search_lacuna or the corresponding Lacuna page URL. The MCP normalizes Lacuna-relative url and *_url fields to absolute URLs, and it also absolutifies Lacuna links (including /resource/... pages) inside fields named summary_markdown, article_markdown, markdown, content, or description.
get_author_context is bounded server-side in both views. The default compact view returns a curated briefing; view="full" returns the larger complete shape with embedded collections capped at 100. Use get_author_papers and get_author_directions rather than trying to page embedded context collections.
Search requests are capped at 50 results per call, and direction-paper page requests are capped at 100 results per call. In search_lacuna, date_from and date_to are inclusive publication-date bounds. Accepted formats are YYYY, YYYY-MM, and YYYY-MM-DD; for example, date_from="2020", date_to="2022-03" includes papers from January 1, 2020 through March 31, 2022.
search_lacuna exposes these ranking profiles:
All searches use the server default unless ranking_profile is provided. The MCP rejects unsupported profile/type combinations because the server would otherwise fall back to substring search and silently ignore the requested ranking profile.
sort accepts relevance (default), year_desc, and year_asc. Year sorts cannot be combined with ranking_profile="semantic" — the server would silently ignore the sort — so the MCP rejects that combination; for recent-and-relevant queries, keep semantic ranking and constrain recency with date_from/date_to instead.
Environment variables are read once when the MCP server is created, or on the first direct tool/API call if the module is imported without calling create_mcp().
The server is a thin MCP adapter over Lacuna's HTTP API. The implementation is split by responsibility:
If you find our work helpful, feel free to cite the papers behind Lacuna's research-proposal generation and research map.
@inproceedings{artiles2026alien, title = {Alien Science: Sampling Coherent but Cognitively Unavailable Research Directions from Idea Atoms}, author = {Artiles, Alejandro H. and Weiss, Martin and Brinkmann, Levin and Goyal, Anirudh and Rahaman, Nasim}, booktitle = {ICLR 2026 Workshop on Post-AGI Science and Society}, year = {2026}, url = {https://openreview.net/forum?id=XZWkDET1ia} } Research map — Lacuna
@misc{weiss2026lacunaresearchmapmachine, title = {Lacuna: A Research Map for Machine Learning}, author = {Martin Weiss and Miles Q. Li and Alejandro H. Artiles and Yacine Mkhinini and Chris Pal and Hugo Larochelle and Nasim Rahaman}, year = {2026}, eprint = {2606.26246}, archivePrefix = {arXiv}, primaryClass = {cs.DL}, url = {https://arxiv.org/abs/2606.26246} } License MIT. See LICENSE.
mcp model-context-protocol research machine-learning literature-search lacuna
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.




