mcp-resource-tool-adapter
mcp-resource-tool-adapter
Expose MCP resources through generic tools for MCP clients and models that
cannot call resources/read directly.
Why?
Some OpenAI-compatible LLM runtimes support tool calls but do not implement
the MCP resource protocol. This package keeps standard MCP resources available
while exposing a generic read_resource(uri) compatibility tool.
Installation
pip install mcp-resource-tool-adapter
Example
from mcp.server.fastmcp import FastMCP
from mcp_resource_tool_adapter import ResourceToolAdapter
mcp = FastMCP("example-server")
resources = ResourceToolAdapter(mcp)
@resources.resource("robot://current_state")
def get_robot_state():
return {"battery_percent": 87, "mode": "standing"}
resources.register_tools()
mcp.run(transport="stdio")
A tool-only client can then call:
{
"uri": "robot://current_state"
}
through the read_resource tool.
Available compatibility tools
read_resource(uri): reads one registered resource.list_resources(): lists URIs that can be read throughread_resource.
Scope
This package does not handle robot control, ROS2, authentication, caching, authorization, or resource freshness. Those remain responsibilities of the application server.
Metadata
Release files for mcp-resource-tool-adapter 0.1.0
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 |
|---|---|---|---|---|
| mcp_resource_tool_adapter-0.1.0.tar.gz | 5.2 kB | With provenance | Details for mcp_resource_tool_adapter-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_resource_tool_adapter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_resource_tool_adapter-0.1.0-py3-none-any.whl |
Total release size: 10.5 kB
Release files / mcp_resource_tool_adapter-0.1.0.tar.gz
| Download URL | mcp_resource_tool_adapter-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0350e110ad16b6fd30b6b531931942d4008146b49ddd66dab63581bc4155b4b
|
|
BLAKE2b-256 checksum How to use checksums |
656a665c93c7f028e5199e3cebec62af6c87c93fa9c4c41278ea3f3f53923f41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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 Jul 22, 2026.
Transparency logRelease files / mcp_resource_tool_adapter-0.1.0-py3-none-any.whl
| Download URL | mcp_resource_tool_adapter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a99bc701c4312972e5f7173b284c6cb1b0acbbbd25b117446ce0d2afe352513d
|
|
BLAKE2b-256 checksum How to use checksums |
026f8a9a9b7f7b6f5e89673089c6f57ca4e8d92415f2e02f32b145c9b00ede2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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 Jul 22, 2026.
Transparency logSecurity for mcp-resource-tool-adapter 0.1.0
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 mcp_resource_tool_adapter-0.1.0.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 Jul 22, 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.