MCP Resources in addition to Tools
** Please make sure you read the contribution guide and file the issues in the right place. ** Contribution guide.
Is your feature request related to a problem? Please describe. In using the MCPToolset and adding MCP Servers (SSE,STDIO, or HTTPStreamable) for any tool with MCP Resources, there is no way to access those resources that I am aware of. An example is an MCP server to access data from a database. If the data sources are in an MCP Resource and the access method is via a tool, there is no easy way to provide the resource information.
Describe the solution you'd like
When creating an Agent or LLMAgent an input that includes passing in those resources as well as an easy to way access those resources. Looking at the mcp package there is a list_tools() which is being used but there is also a list_resources(). When using the MCPToolset you could potentially just change it to MCPServer that returns the resources, tools, prompts, etc. Then pass in that object to the Agent or LLMAgent constructor.
Describe alternatives you've considered
Getting the resources directly from the mcp package and passing those in as part of the LLMAgent instructions, e.g. f"You are an agent and have access to the following resources in addition to the tools you are provided {resources}. This works but is not as modular or intuative.
Additional context NA
yes i was searching for it too. currently, can't get resouces and resouces template.
I'm also hitting this limitation.
My use case: I'm building an ADK agent that needs to access contextual data (documentation, schemas, configuration files) exposed as MCP resources from our custom MCP server. The agent should be able to read these resources to provide context-aware responses, but currently can only access the server's tools via MCPToolset.
Current workaround:
- Creating wrapper tools on the MCP server that return resource content as tool responses
- OR manually implementing a separate MCP client using the
mcplibrary alongside MCPToolset to handle resources
Why it's insufficient:
- Violates MCP semantics: Resources and tools have different purposes - resources provide context, tools perform actions
- Duplicate implementation: Having both MCPToolset AND a custom MCP client creates unnecessary complexity
- Loses MCP resource features: No access to resource templates, real-time updates, or resource-specific metadata
- Architectural inconsistency: ADK agents can't be pure MCP clients when they need both tools and resources from the same server
- Maintenance burden: Custom resource client needs separate connection management, error handling, and lifecycle management
This limitation prevents ADK from being a complete MCP client implementation and forces awkward architectural compromises. Having unified access to both tools and resources through MCPToolset (or a successor like the proposed MCPServer) would enable much cleaner, more maintainable agent implementations.
Any updates on this?
Any updates on this please? This is MUST need feature for ADK as most MCPs are created with 'resources' to provide the additional context that the LLM can fetch while calling tools.
Same issue being reported in - https://github.com/google/adk-python/issues/3030 and https://github.com/google/adk-python/issues/684
@jimmycfa Thanks for the detailed request and everyone who's participating in.
You're absolutely right - ADK currently only exposes MCP tools via McpToolset, not resources.
The good news is the MCP SDK already has list_resources() and read_resource() methods, so the infrastructure is there. Adding a McpResourceProvider class and resources parameter to LlmAgent (similar to how tools work) - this would let you pass both tools and resources from the same MCP server.
Really appreciate the clear use cases you've all shared.
@hangfei Please have a look into it.
Thanks all for your patience here! As mentioned in our last community call, we are working on some updates to come. Stay tuned!
Please use the main thread to track. Closing this for now.
@jimmycfa @auroradanier @murtaza-motorwala Thanks for reporting! We are working on a MCP prompts implementation in ADK. A few questions about your use-cases:
- How large are the resources you are storing, and how many are there?
- What type of resource is it (json, txt, etc)?
- Do you hope to have it automatically loaded on startup?
- Are the resources static, or can they change over time?
- Will multiple agents share the same resource?