LibraryAI Vector Search MCP

LibraryAI includes a .NET console MCP server that searches a local vector database through a configured embedding endpoint.

Local serverstdioC#

What is the LibraryAI Vector Search MCP Server?

LibraryAI includes a .NET console MCP server that searches a local vector database through a configured embedding endpoint.

Search an existing document index

LibraryAI's ConsoleMCP project exposes a vector-search service through stdio. It loads a local database, generates an embedding for the query and compares that vector with stored embeddings. Matching passages are returned with source information. Document ingestion and vector creation belong to the wider LibraryAI tooling, rather than being performed automatically by every MCP search.

Supply the required command options

The console project targets .NET 8 and uses mcpdotnet. Its vector command requires a database path and an embedding-model identifier. The endpoint defaults to a local OpenAI-compatible address; a hosted endpoint needs its own URL and credential configuration. Use the same compatible embedding model for indexing and querying so stored vectors can be compared meaningfully.

Check retrieval against a known passage

Prepare a small index with a passage you can identify, then search for a related phrase. Inspect the returned text and source alongside the configured similarity threshold and result limit. An empty database cannot demonstrate retrieval quality. The console server implements stdio; web-server and SSE work listed in the repository should not be presented as available transports for this component.

Project documentation

Repository and setup guide

How to install the LibraryAI Vector Search MCP Server

{
  "mcpServers": {
    "libraryai": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "/ABSOLUTE_PATH/LibraryAI/ConsoleMCP/ConsoleMCP.csproj",
        "--",
        "vector",
        "--database",
        "/ABSOLUTE_PATH/vector.db",
        "--embedding-model",
        "YOUR_EMBEDDING_MODEL"
      ]
    }
  }
}

Configuration

.NET 8 SDK, the ConsoleMCP project dependencies, a populated LibraryAI vector database and a compatible embedding endpoint.

Example prompts to try

  • “Use LibraryAI to ConsoleAI.”
  • “Use LibraryAI to ConsoleMCP.”
  • “Use LibraryAI to ConsoleMCPWrapper.”

Frequently asked questions

No. The search service reads vectors from the selected database; ingestion and indexing are separate LibraryAI workflows.