---
title: "Get MCP Roles"
method: POST
path: "/genai.mcp/roles"
tags: ["MCP"]
---

# Get MCP Roles

`POST /genai.mcp/roles`

## Request

- Base URL: `https://companynode.pricefx.com/pricefx/companypartition`
- URL: `https://companynode.pricefx.com/pricefx/companypartition/genai.mcp/roles`
- Auth: one of:
  - HTTP basic
  - API key in header `X-PriceFx-jwt`
- TypeScript: <https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/docs/genai.mcp/roles/post.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves available MCP Roles from the Advanced Configuration Options.

## Response `200`

Roles received.

- object
  - `response` object
    - `data` object[]
      - `MCP_role_datamart_details_fetcher` string
      - `MCP_role_object_fetcher` string
    - `status` integer

---

[API](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api.md) - [All operations](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/revisions/23d941b00ac0?raw)
