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

# Get Agent Mcp Servers

> Get all MCP servers configured for an agent.

Args:
    agent_id: The ID of the agent
    status: Optional filter by connection status
    user_id: The user ID of the current user
    organization_id: The organization ID of the current user

Returns:
    List of MCP servers

Raises:
    HTTPException: If agent not found or access denied



## OpenAPI

````yaml get /api/v1/mcp/agents/{agent_id}/servers
openapi: 3.1.0
info:
  title: ThenaAgentStudio
  description: |2-

        ThenaCrew AI CRM Renewal System

        An intelligent platform to automate customer renewal insights and communications through multi-agent workflows.

        Key Features:
        * AI-powered renewal analysis
        * Personalized communication generation
        * Automated opportunity tracking
        * Multi-agent workflow orchestration
        
  version: 1.0.0
servers:
  - url: https://agent-studio.thena.ai
    description: Production server
  - url: http://localhost:8008
    description: Local development server
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Agent management endpoints
  - name: Chat
    description: Chat and messaging endpoints
paths:
  /api/v1/mcp/agents/{agent_id}/servers:
    get:
      tags:
        - mcp-servers
      summary: Get Agent Mcp Servers
      description: |-
        Get all MCP servers configured for an agent.

        Args:
            agent_id: The ID of the agent
            status: Optional filter by connection status
            user_id: The user ID of the current user
            organization_id: The organization ID of the current user

        Returns:
            List of MCP servers

        Raises:
            HTTPException: If agent not found or access denied
      operationId: get_agent_mcp_servers_api_v1_mcp_agents__agent_id__servers_get
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
        - name: status
          in: query
          required: false
          schema:
            type: string
            description: Filter by connection status
            title: Status
          description: Filter by connection status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MCPServer'
                title: >-
                  Response Get Agent Mcp Servers Api V1 Mcp Agents  Agent Id 
                  Servers Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MCPServer:
      properties:
        name:
          type: string
          title: Name
          description: Display name of the MCP server
        url:
          type: string
          title: Url
          description: URL of the MCP server
        auth_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Auth Config
          description: Authentication configuration for the MCP server
        tool_discovery_endpoint:
          anyOf:
            - type: string
            - type: 'null'
          title: Tool Discovery Endpoint
          description: The endpoint path for tool discovery, defaults to /tools
          default: /tools
        health_check_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Health Check Url
          description: URL for health check endpoint
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the MCP server
        agent_id:
          type: string
          format: uuid
          title: Agent Id
          description: ID of the agent this MCP server belongs to
        status:
          type: string
          title: Status
          description: 'Connection status: ''connected'', ''disconnected'', ''error'''
          default: disconnected
        last_health_check:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Health Check
          description: Timestamp of the last health check
        is_enabled:
          type: boolean
          title: Is Enabled
          description: Whether the MCP server is enabled for use by the agent
          default: true
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the MCP server was configured
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the MCP server was last updated
        deleted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deleted At
          description: Timestamp when the server was soft-deleted
        token_expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Token Expires At
          description: The timestamp when the OAuth access token expires
      type: object
      required:
        - name
        - url
        - id
        - agent_id
        - created_at
        - updated_at
      title: MCPServer
      description: Model for an MCP server configuration.
      example:
        agent_id: 123e4567-e89b-12d3-a456-426614174001
        auth_config:
          client_id: our_dynamically_registered_client_id
          type: oauth2
        created_at: '2023-01-01T00:00:00Z'
        health_check_url: https://api.salesforce.com/mcp/health
        id: 123e4567-e89b-12d3-a456-426614174000
        last_health_check: '2023-01-01T00:00:00Z'
        name: Salesforce MCP
        status: connected
        updated_at: '2023-01-01T00:00:00Z'
        url: https://api.salesforce.com/mcp
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````