Metadata-Version: 2.5
Name: paper2agent-lolalign-mcp
Version: 0.1.1
Summary: Unofficial MCP server wrapper for LoL-align (Foldseek) protein structure alignment, packaged by Paper2Agent
Project-URL: Homepage, https://paper2agent.top/papers/lolalign/reproduction_trace.html
Project-URL: Repository, https://github.com/kalalika323-lgtm/paper2agent-mcp/tree/main/packages/lolalign
Project-URL: Original code (Foldseek), https://github.com/steineggerlab/foldseek
Project-URL: Paper, https://doi.org/10.1038/s41592-026-03249-w
Author: Paper2Agent (packager)
License: GPL-3.0-only
License-File: LICENSE
License-File: NOTICE.md
Keywords: bioinformatics,foldseek,mcp,model-context-protocol,protein-structure
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.10
Requires-Dist: fastmcp>=2.0
Description-Content-Type: text/markdown

<!-- mcp-name: top.paper2agent/lolalign -->
# paper2agent-lolalign-mcp

An MCP (Model Context Protocol) server for **LoL-align**, the sensitive and
fast probabilistic protein structure alignment method built on Foldseek —
packaged so any MCP client (Claude Code, Cursor, CodeBuddy, Cherry Studio…)
can call it as tools.

## Attribution — please read first

> **This is an unofficial third-party packaging. It is not affiliated with,
> or endorsed by, the method's authors.**

- **Original paper**: Reifenrath, L., van Kempen, M., Kim, G., Kim, S. H.,
  Radnezhad, M., Gilchrist, C. L. M., Mirdita, M., Steinegger, M. & Söding, J.
  "LoL-align: sensitive and fast probabilistic protein structure alignment."
  *Nature Methods* (2026). DOI: [10.1038/s41592-026-03249-w](https://doi.org/10.1038/s41592-026-03249-w)
  · PMCID: PMC13736684
- **Original code**: Foldseek / LoL-align by the Steinegger lab —
  <https://github.com/steineggerlab/foldseek> @ commit `4f5c00ccb5590f08a261b9144fd9a5d28a71fa0e`,
  licensed under **GPL-3.0**. The tools in this package run the official
  `foldseek` binary distributed at mmseqs.com; no upstream code is modified.
- **This wrapper**: the thin MCP layer (server + tool definitions) was
  generated and is maintained by the **Paper2Agent** project, which converts
  published methods into uniform MCP servers. All credit for the science
  belongs to the original authors above; if you use LoL-align in your work,
  cite their paper.

Full reproduction report for this method (inputs, outputs, validation):
<https://paper2agent.top/papers/lolalign/reproduction_trace.html?utm_source=github&utm_medium=readme&utm_campaign=paper2agent-lolalign-mcp>

## Tools (4)

| Tool | What it does |
|---|---|
| `lolalign_createdb` | Index PDB/mmCIF structures into a Foldseek database (AA + 3Di + C-alpha) |
| `lolalign_easy_search` | Search query structure(s) against a target set/database with LoL-align |
| `lolalign_pairwise_align` | Pairwise LoL-align alignment of two structures |
| `lolalign_easy_cluster` | Structure-based clustering with LoL-align |

Every tool takes file paths plus typed parameters and returns a structured
envelope: `{status, summary, outputs, metrics, provenance}`.

## Install

```bash
# 1) Install the MCP wrapper
uvx paper2agent-lolalign-mcp --list-tools        # or: pip install paper2agent-lolalign-mcp

# 2) Fetch the official foldseek binary (one time)
python -m paper2agent_lolalign_mcp.install_foldseek
# …or set FOLDSEEK_BIN / put your own foldseek binary on PATH
```

## Use with an MCP client

```json
{
  "mcpServers": {
    "lolalign": {
      "command": "uvx",
      "args": ["paper2agent-lolalign-mcp"]
    }
  }
}
```

The server speaks stdio by default, and also supports HTTP transports:
`paper2agent-lolalign-mcp --transport http --host 0.0.0.0 --port 8000`.

## More methods

This is one of 85 published-paper methods converted to MCP servers by
Paper2Agent (single-cell & spatial omics, structural bioinformatics, and
more), all with reproduction reports:

**Browse the full library → <https://paper2agent.top/?utm_source=github&utm_medium=readme&utm_campaign=paper2agent-lolalign-mcp>**

## License

GPL-3.0 — see [LICENSE](LICENSE). The upstream Foldseek code is GPL-3.0 and
this combined wrapper is distributed under the same license; full source is
in this repository. Attribution details: [NOTICE.md](NOTICE.md).

Packaging issues (not method questions) → this repo's issue tracker.
Method questions → the upstream Foldseek repository.
