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

# How do I create a new MCP server using the HasMCP manager?

> Step-by-step guide on creating a new MCP server in the HasMCP manager using the REST API.

# Creating a New MCP Server in HasMCP

## Using HasMCP UI

<img src="https://mintcdn.com/hasmcp/9Embd1XJnDsV9Wi6/images/kb/create-server.png?fit=max&auto=format&n=9Embd1XJnDsV9Wi6&q=85&s=c23e2d23b5bfd73cdadab57b9d64d129" alt="New Server Creation Page" width="2560" height="1440" data-path="images/kb/create-server.png" />

To create a new MCP server through the dashboard:

1. Navigate to the **Servers** section from the sidebar.
2. Click the **Create Server** or **New Server** button.
3. Fill in the required fields such as the server's name and its behavioral instructions.
4. Save your configuration to instantly provision the server.

## Using REST API

To create a new MCP server programmatically, you need to make a `POST` request to the `/servers` endpoint with a JSON payload containing your server's configuration.

### Step-by-Step Guide

1. **Prepare Authentication**: Ensure you have your HasMCP Manager API token. You will need to pass this in the `Authorization` header as a Bearer token (`Bearer ${HASMCP_ACCESS_TOKEN}`).
2. **Define Server Configuration**: Create a JSON payload that specifies the `name`, `instructions`, `version`, and any associated `providers`, `resources`, or `prompts`.
3. **Send the Request**: Make a `POST` request to `https://app.hasmcp.com/api/v1/servers` (or your specific HasMCP Manager base URL) with the compiled JSON body.

### Example cURL Request

```bash theme={null}
curl -X POST https://app.hasmcp.com/api/v1/servers \
 -H "Authorization: Bearer YOUR_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{
 "server": {
 "name": "myCustomMCPServer",
 "instructions": "You are a helpful AI assistant.",
 "version": 1,
 "providers": []
 }
 }'
```

A successful request will return a `201 Created` status code along with the newly created server's details.
