SuperAPIAI Directory

devflowinc/trieve

github.com · Other AI tools

Trieve MCP Server is a Model Context Protocol (MCP) server provided by the Trieve platform, built with TypeScript, offering AI agents a standardized interface for interacting with the Trieve API. It supports semantic search over Trieve datasets, listing and accessing dataset information, can be configured with credentials via environment variables or command-line arguments, and supports integration with Claude Desktop. The server provides search tools and dataset resources to help AI agents retrieve and interact within Trieve datasets.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Trieve MCP Server is a client component of the Trieve platform, located in the clients/mcp-server directory of its code repository. It is a server based on the Model Context Protocol (MCP), designed to provide AI agents with tools for interacting with the Trieve API, enabling agents to search and operate on Trieve datasets through a standardized interface.

Main capabilities include: semantic search across Trieve datasets; listing and accessing dataset information; support for configuration via environment variables or command-line arguments; built with TypeScript, providing type safety and a better developer experience.

Usage: It can be automatically installed into Claude Desktop via Smithery, or installed manually. For manual installation, you need to copy the .env.dist file to .env and fill in the Trieve credentials. Required environment variables are TRIEVE_API_KEY (API key from dashboard.trieve.ai) and TRIEVE_ORGANIZATION_ID (organization ID from dashboard.trieve.ai). The optional environment variable is TRIEVE_DATASET_ID (specifies the dataset ID, if not provided via CLI). Command-line arguments can override environment variables. After starting the server, you can use the provided tools to search.

Available tools: Search a specified Trieve dataset. Parameters include: query (string, search query), datasetId (string, ID of the dataset to search), searchType (string, optional, with possible values "semantic" (default), "fulltext", "hybrid", or "bm25"), filters (object, optional, advanced filtering options), highlightOptions (object, optional, custom result highlighting), page (number, optional, page number, default 1), pageSize (number, optional, number of results per page, default 10).

Available resources: The server exposes Trieve datasets as resources, with the URI format trieve://datasets/{dataset-id}.

Integration with Claude Desktop: Trieve MCP Server supports MCP integration with Claude Desktop. After configuration in Claude Desktop's claude_desktop_config.json, when Claude Desktop starts, the attachments will correspond to the datasets available to the Trieve organization, which can be used to select datasets. You can then chat with Claude and ask about dataset information; Claude will use search as needed to filter and break down queries, and may perform multiple queries depending on the task. Note: --api-key, --org-id, and --dataset-id can be used as command-line arguments instead of environment variables.

Development-related commands: After cloning the repository, install dependencies, copy .env.dist to .env and configure credentials, then run npm run build to build the TypeScript project; npm run watch watches for changes and rebuilds; npm run test runs tests; npm run inspector runs the MCP inspector for debugging.

Use cases: Scenarios where AI agents (such as Claude Desktop) need to access and search Trieve datasets, for example building knowledge-base-based question answering, document retrieval, and similar applications.

Limitations: Requires a valid Trieve API key and organization ID; requires a Node.js environment for manual installation; specific functionality is limited by Trieve API capabilities.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools