Skip to main content

MCP server that selects the best-suited downstream agent for a natural language query, distributed via uvx.

Project description

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tool_to_agent_retrieval_mcp-0.1.2.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tool_to_agent_retrieval_mcp-0.1.2-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file tool_to_agent_retrieval_mcp-0.1.2.tar.gz.

File metadata

File hashes

Hashes for tool_to_agent_retrieval_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e5d5e127e4871cacb27c957bfc9086a26b755b6a50a18b3e3ae5e3f0310cf137
MD5 079a3d5af5892582d8c5efd67f8be891
BLAKE2b-256 269c81e344ee6b8603127c3b5aad8d6513189b2b4af160c28a88c5ba83226d01

See more details on using hashes here.

Provenance

The following attestation bundles were made for tool_to_agent_retrieval_mcp-0.1.2.tar.gz:

Publisher: publish.yml on GusCayresMindsight/tool-to-agent-retrieval-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tool_to_agent_retrieval_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tool_to_agent_retrieval_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 90c0381609adc7f085720511a08a96f04797010acbf41f8efd94ce152616a070
MD5 87b8008fbb6fce68040e2d944c3e6f61
BLAKE2b-256 b17f11f58453ba4857d988012b28baf6e3d4fba9d6d7b53cfd20a91b66e3cc79

See more details on using hashes here.

Provenance

The following attestation bundles were made for tool_to_agent_retrieval_mcp-0.1.2-py3-none-any.whl:

Publisher: publish.yml on GusCayresMindsight/tool-to-agent-retrieval-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page