Access static and templated resources from MCP servers.
New in version: 2.0.0
Resources are data sources exposed by MCP servers. They can be static files or dynamic templates that generate content based on parameters.
list_resources()
to retrieve all static resources available on the server:
list_resource_templates()
to retrieve available resource templates:
New in version: 2.11.0
You can use the meta
field to filter resources based on their tags:
_meta
field is part of the standard MCP specification. FastMCP servers include tags and other metadata within a _fastmcp
namespace (e.g., _meta._fastmcp.tags
) to avoid conflicts with user-defined metadata. This behavior can be controlled with the server’s include_fastmcp_meta
setting - when disabled, the _fastmcp
namespace won’t be included. Other MCP server implementations may not provide this metadata structure.*_mcp
methods: