Searches public Model Context Protocol servers by capability or name and returns each with its description, repository, hosted endpoint or package, and version.
curl -X POST "https://api.primaryapi.com/v1/run/mcp.search" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"postgres"}'{
"output": {
"found": true,
"data": {
"total": "<integer>",
"nextCursor": "<string | null>",
"servers": [
{
"name": "<string>",
"score": "<integer>",
"title": "<string | null>",
"description": "<string | null>", …
}
]
}
},
"credits": 1
}Input and output
4 fields
postgres.12 fields
Good to know
Candidates are servers whose name contains your query or one of its words ("postgres" finds "io.github.x/postgres-mcp"). They are ranked by how many of your words appear in the name, title and description.
Only the latest version of each server is returned.
No match is a free miss. A miss is an answer, not an error, and it costs nothing.
Listings are metadata published by server authors. Evaluate a server before you connect it.
The same key and credits work for every API.