---
title: "Create Provider"
method: POST
path: "/api/admin/mcp/providers"
tags: ["Admin MCP"]
---

# Create Provider

`POST /api/admin/mcp/providers`

## Request body

- OAuthProviderCreate
  - `provider_name` string, required
  - `name` string, required
  - `client_id` string, required
  - `client_secret` string, required
  - `auth_url` string, required
  - `token_url` string, required
  - `redirect_uri` string, nullable
  - `userinfo_url` string, nullable
  - `user_id_path` string, nullable
  - `email_path` string, nullable
  - `default_scopes` string[], nullable

## Response `200`

Successful Response

- OAuthProviderResponse
  - `provider_name` string, required
  - `name` string, required
  - `client_id` string, required
  - `client_secret` string, required
  - `auth_url` string, required
  - `token_url` string, required
  - `redirect_uri` string, nullable
  - `userinfo_url` string, nullable
  - `user_id_path` string, nullable
  - `email_path` string, nullable
  - `default_scopes` string[], nullable
  - `id` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
