docs-concepts-registry-underscore-search-underscore-servers.md
GET
/
servers
Try it
List all servers
cURL
curl --request GET \
--url https://api.smithery.ai/servers \
--header 'Authorization: Bearer <token>'
import requests
url = "https://api.smithery.ai/servers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.smithery.ai/servers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smithery.ai/servers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.smithery.ai/servers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://api.smithery.ai/servers")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.smithery.ai/servers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
200
400
401
422
{
"servers": [
{
"id": "abc123",
"qualifiedName": "smithery/hello-world",
"namespace": "smithery-ai",
"slug": "hello-world",
"displayName": "Hello World",
"description": "A simple hello world server",
"iconUrl": "https://example.com/icon.png",
"verified": true,
"useCount": 42,
"remote": true,
"isDeployed": true,
"createdAt": "2024-01-01T00:00:00.000Z",
"homepage": "https://example.com",
"bySmithery": false,
"owner": "user_abc123",
"score": 0.016
}
],
"pagination": {
"currentPage": 1,
"pageSize": 10,
"totalPages": 5,
"totalCount": 42
}
}
{
"error": "Server not found"
}
{
"error": "Server not found"
}
{
"error": "Server not found"
}
The registry is a list of MCP servers that are available to use. You can search for MCP servers by name, description, or tags. To get started, all you need is a Smithery API Key. You can get one at smithery.ai/account/api-keys.
[
](#authorization-authorization)
Authorization
string
header
required
Smithery API key as Bearer token
[
](#parameter-q)
q
string
Search query for full-text and semantic search across server names and descriptions.
[
](#parameter-page)
page
integer
Page number (1-indexed).
Required range: 1 <= x <= 9007199254740991
[
](#parameter-page-size)
pageSize
integer
Number of results per page (default 10, max 100).
Required range: 1 <= x <= 100
[
](#parameter-top-k)
topK
integer
Maximum number of candidate results to consider from the search index before pagination.
Required range: 10 <= x <= 500
[
](#parameter-fields)
fields
string
Comma-separated list of fields to include in response
[
](#parameter-ids)
ids
string<uuid>[]
Filter by specific server IDs.
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
[
](#parameter-qualified-name)
qualifiedName
string
Exact match on the server's qualified name (e.g. "smithery/hello-world"). Deprecated: use GET /servers/:namespace/:server instead.
[
](#parameter-namespace)
namespace
string
Filter by the namespace that owns the server.
[
](#parameter-remote)
remote
enum<string>
Filter by remote status. Remote servers are accessed via URL; non-remote servers run locally via stdio.
Available options:
0,
1,
true,
false
[
](#parameter-is-deployed)
isDeployed
enum<string>
Filter by deployment status. Deployed servers are hosted on Smithery infrastructure.
Available options:
0,
1,
true,
false
[
](#parameter-verified)
verified
enum<string>
Filter to only verified servers.
Available options:
0,
1,
true,
false
[
](#parameter-owner-id)
ownerId
string
Filter by the server owner's user ID.
[
](#parameter-repo-owner)
repoOwner
string
Filter by GitHub repository owner from repository_url.
[
](#parameter-repo-name)
repoName
string
Filter by GitHub repository name from repository_url.
[
](#parameter-seed)
seed
integer
Random seed for deterministic pagination. When provided, results use a stable sort order that is consistent across pages for the same seed value.
Required range: -9007199254740991 <= x <= 9007199254740991
200
application/json
Successful response
[
](#response-servers)
servers
object[]
required
Show child attributes
[
](#response-pagination)
pagination
object
required
Show child attributes
Was this page helpful?
YesNo
⌘I
List all servers
cURL
curl --request GET \
--url https://api.smithery.ai/servers \
--header 'Authorization: Bearer <token>'
import requests
url = "https://api.smithery.ai/servers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.smithery.ai/servers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smithery.ai/servers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.smithery.ai/servers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://api.smithery.ai/servers")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.smithery.ai/servers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
200
400
401
422
{
"servers": [
{
"id": "abc123",
"qualifiedName": "smithery/hello-world",
"namespace": "smithery-ai",
"slug": "hello-world",
"displayName": "Hello World",
"description": "A simple hello world server",
"iconUrl": "https://example.com/icon.png",
"verified": true,
"useCount": 42,
"remote": true,
"isDeployed": true,
"createdAt": "2024-01-01T00:00:00.000Z",
"homepage": "https://example.com",
"bySmithery": false,
"owner": "user_abc123",
"score": 0.016
}
],
"pagination": {
"currentPage": 1,
"pageSize": 10,
"totalPages": 5,
"totalCount": 42
}
}
{
"error": "Server not found"
}
{
"error": "Server not found"
}
{
"error": "Server not found"
}