---
title: "Unified semantic search for MCP servers and tools"
method: POST
path: "/api/search/semantic"
tags: ["Semantic Search"]
---

# Unified semantic search for MCP servers and tools

`POST /api/search/semantic`

Run a semantic search against MCP servers (and their tools) using FAISS embeddings.

## Request body

- SemanticSearchRequest
  - `query` string, required — Natural language query
  - `entity_types` string[], nullable — Optional entity filters
  - `max_results` integer — Maximum results per entity collection

## Response `200`

Successful Response

- SemanticSearchResponse
  - `query` string, required
  - `servers` ServerSearchResult[]
    - `path` string, required
    - `server_name` string, required
    - `description` string, nullable
    - `tags` string[]
    - `num_tools` integer
    - `is_enabled` boolean
    - `relevance_score` number, required
    - `match_context` string, nullable
    - `matching_tools` MatchingToolResult[]
      - `tool_name` string, required
      - `description` string, nullable
      - `relevance_score` number
      - `match_context` string, nullable
  - `tools` ToolSearchResult[]
    - `server_path` string, required
    - `server_name` string, required
    - `tool_name` string, required
    - `description` string, nullable
    - `relevance_score` number, required
    - `match_context` string, nullable
  - `agents` AgentSearchResult[]
    - `path` string, required
    - `agent_name` string, required
    - `description` string, nullable
    - `tags` string[]
    - `skills` string[]
    - `trust_level` string, nullable
    - `visibility` string, nullable
    - `is_enabled` boolean
    - `relevance_score` number, required
    - `match_context` string, nullable
  - `total_servers` integer
  - `total_tools` integer
  - `total_agents` integer

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ascending-llc/apis/mcp-gateway-registry.md) · [All operations](https://skmtc.net/ascending-llc/apis/mcp-gateway-registry/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ascending-llc/mcp-gateway-registry/versions/31381943e2e7/schema)
