tool-to-agent-retrieval-mcp
An MCP server that selects the best-suited downstream agent for a natural language query
and forwards a tool call to it. Distributed via uvx.
Usage
Add to Claude Desktop (claude_desktop_config.json) or Claude Code (.claude/settings.json):
{
"mcpServers": {
"tool-to-agent-retrieval-mcp": {
"command": "uvx",
"args": ["tool-to-agent-retrieval-mcp"]
}
}
}
Configure your agent corpus in .mcp-corpus.json (or $MCP_CORPUS_PATH). The server
exposes three tools: search_tools, get_tool_details, and invoke_tool.
Algorithm
The retrieval algorithm is based on:
Lumer, S., et al. (2025). Tool-to-Agent Retrieval: Bridging Tools and Agents for Scalable LLM Multi-Agent Systems. PricewaterhouseCoopers. arXiv:2511.01854v2.
A unified catalog C = CT ∪ CA (tool corpus + agent corpus) is built offline and searched at query time using Algorithm 1: top-N candidates are ranked by similarity, then deduplicated to return the top-K unique owner agents.
Development
uv run pytest tests/pytest/
Metadata
Release files for tool-to-agent-retrieval-mcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tool_to_agent_retrieval_mcp-0.1.2.tar.gz | 1.7 MB | With provenance | Details for tool_to_agent_retrieval_mcp-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tool_to_agent_retrieval_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for tool_to_agent_retrieval_mcp-0.1.2-py3-none-any.whl |
Total release size: 1.7 MB
Release files / tool_to_agent_retrieval_mcp-0.1.2.tar.gz
| Download URL | tool_to_agent_retrieval_mcp-0.1.2.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5d5e127e4871cacb27c957bfc9086a26b755b6a50a18b3e3ae5e3f0310cf137
|
|
BLAKE2b-256 checksum How to use checksums |
269c81e344ee6b8603127c3b5aad8d6513189b2b4af160c28a88c5ba83226d01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logRelease files / tool_to_agent_retrieval_mcp-0.1.2-py3-none-any.whl
| Download URL | tool_to_agent_retrieval_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90c0381609adc7f085720511a08a96f04797010acbf41f8efd94ce152616a070
|
|
BLAKE2b-256 checksum How to use checksums |
b17f11f58453ba4857d988012b28baf6e3d4fba9d6d7b53cfd20a91b66e3cc79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logSecurity for tool-to-agent-retrieval-mcp 0.1.2
Provenance
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for tool_to_agent_retrieval_mcp-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.