Skip to main content
GET
/
namespaces
JavaScript
import Smithery from '@smithery/api';

const client = new Smithery({
  apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const namespaceListResponse of client.namespaces.list()) {
  console.log(namespaceListResponse.name);
}
{
  "namespaces": [
    {
      "name": "anthropic"
    }
  ],
  "pagination": {
    "currentPage": 0,
    "pageSize": 0,
    "totalPages": 0,
    "totalCount": 0
  }
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Query Parameters

q
string

Text search query (prefix match on name)

ownerId
string

Filter by owner ID

hasServers
enum<string>

Filter namespaces with servers

Available options:
0,
1,
true,
false
hasSkills
enum<string>

Filter namespaces with skills

Available options:
0,
1,
true,
false
page
integer
Required range: 1 <= x <= 9007199254740991
pageSize
integer
Required range: 1 <= x <= 50
fields
string

Comma-separated list of fields to include in response

Response

Successful response

namespaces
object[]
required
pagination
object
required