> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gumloop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Read MCP server resource

> Read one resource by `uri`. Each content item is either `text` or a base64 `blob`, never both.



## OpenAPI

````yaml get /mcp/servers/{server_id}/resources/read
openapi: 3.0.0
info:
  title: Public API
  version: 1.0.0
servers:
  - url: https://api.gumloop.com/api/v1
security: []
paths:
  /mcp/servers/{server_id}/resources/read:
    get:
      tags:
        - MCP
      summary: Read MCP server resource
      description: >-
        Read one resource by `uri`. Each content item is either `text` or a
        base64 `blob`, never both.
      operationId: readMcpServerResource
      parameters:
        - in: path
          name: server_id
          required: true
          schema:
            type: string
        - in: query
          name: uri
          required: true
          schema:
            type: string
          description: The resource `uri` from List MCP server resources.
        - in: query
          name: team_id
          required: false
          schema:
            type: string
      responses:
        '200':
          description: The resource contents.
          content:
            application/json:
              schema:
                type: object
                required:
                  - server_id
                  - uri
                  - contents
                properties:
                  server_id:
                    type: string
                  uri:
                    type: string
                  contents:
                    type: array
                    items:
                      type: object
                      properties:
                        uri:
                          type: string
                          nullable: true
                        mime_type:
                          type: string
                          nullable: true
                        text:
                          type: string
                          nullable: true
                        blob:
                          type: string
                          nullable: true
                          description: Base64-encoded bytes for binary resources.
        '400':
          description: '`uri` is missing (`uri_required`).'
        '401':
          description: Unauthorized — missing or invalid Gumloop API credentials.
        '403':
          description: >-
            Forbidden — the caller cannot use agents in the team, or the server
            is disabled by organization policy.
        '404':
          description: Server not found.
        '409':
          description: The server is not connected.
        '502':
          description: The MCP server could not be reached or returned an error.
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >
            curl
            'https://api.gumloop.com/api/v1/mcp/servers/gumloop_notion/resources/read?uri=notion%3A%2F%2Fpages%2F2f1a9c7e&team_id=YOUR_TEAM_ID'
            \
              -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
        - lang: python
          label: Python
          source: >
            from gumloop import Gumloop


            client = Gumloop(access_token="YOUR_ACCESS_TOKEN")


            response = client.mcp.get_resource("gumloop_notion",
            "notion://pages/2f1a9c7e", team_id="YOUR_TEAM_ID")

            for content in response.contents:
                print(content.mime_type, content.text or "<binary>")
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A personal API key or an [OAuth 2.0](/api-reference/oauth) access token.
        Personal API keys also require the `x-auth-key` header with your user
        ID.

````