A Model Context Protocol (MCP) server that provides agentic tools for interacting with the Trieve API. This server enables AI agents to search and interact with Trieve datasets through a standardized interface. - Search across Trieve datasets using semantic search - List and access dataset information - Support for both environment variables and command-line arguments - Built with TypeScript for t
Add this skill
npx mdskills install devflowinc/trieveWell-documented MCP server with clear setup and comprehensive search tool descriptions
1# trieve-mcp-server23[](https://smithery.ai/server/trieve-mcp-server)45A Model Context Protocol (MCP) server that provides agentic tools for interacting with the Trieve API. This server enables AI agents to search and interact with Trieve datasets through a standardized interface.67## Features89- Search across Trieve datasets using semantic search10- List and access dataset information11- Support for both environment variables and command-line arguments12- Built with TypeScript for type safety and better developer experience1314## Installation1516### Installing via Smithery1718To install Trieve for Claude Desktop automatically via [Smithery](https://smithery.ai/server/trieve-mcp-server):1920```bash21npx -y @smithery/cli install trieve-mcp-server --client claude22```2324### Manual Installation25```bash26npm install trieve-mcp-server27```2829## Configuration3031Copy the `.env.dist` file to `.env` and fill in your Trieve credentials:3233```bash34cp .env.dist .env35```3637Required environment variables:38- `TRIEVE_API_KEY`: Your Trieve API key from dashboard.trieve.ai39- `TRIEVE_ORGANIZATION_ID`: Your Trieve organization ID from dashboard.trieve.ai4041Optional environment variables:42- `TRIEVE_DATASET_ID`: Specific dataset ID to use (if not provided via CLI)4344Command-line arguments (override environment variables):45```bash46trieve-mcp-server --api-key <your-api-key> --org-id <your-org-id> [--dataset-id <dataset-id>]47```4849## Usage5051### Starting the Server5253```bash54trieve-mcp-server55```5657### Available Tools5859#### search60Search through a specified Trieve dataset.6162Parameters:63- `query` (string): The search query64- `datasetId` (string): ID of the dataset to search in65- `searchType` (string, optional): "semantic" (default), "fulltext", "hybrid", or "bm25"66- `filters` (object, optional): Advanced filtering options67- `highlightOptions` (object, optional): Customize result highlighting68- `page` (number, optional): Page number, default 169- `pageSize` (number, optional): Results per page, default 107071Example:72```json73{74 "query": "example search query",75 "datasetId": "your-dataset-id",76 "searchType": "semantic",77 "page": 1,78 "pageSize": 1079}80```8182### Available Resources8384The server exposes Trieve datasets as resources with the following URI format:85- `trieve://datasets/{dataset-id}`8687## Usage with Claude Desktop8889The Trieve MCP Server supports MCP integration with [Claude Desktop](https://modelcontextprotocol.io/quickstart/user). Place the following in your Claude Desktop's `claude_desktop_config.json`.9091```json92{93 "mcpServers": {94 "trieve-mcp-server": {95 "command": "npx",96 "args": ["trieve-mcp-server@latest"],97 "env": {98 "TRIEVE_API_KEY": "$TRIEVE_API_KEY",99 "TRIEVE_ORGANIZATION_ID": "$TRIEVE_ORGANIZATION_ID",100 "TRIEVE_DATASET_ID": "$TRIEVE_DATASET_ID"101 }102 }103 }104}105```106107Note: Instead of environment variables, `--api-key`, `--org-id`, and `--dataset-id` can be used as command-line arguments.108109Once Claude Desktop starts, attachments will be available that correspond to the [datasets available to the Trieve organization](https://docs.trieve.ai/guides/create-organizations-and-dataset). These can be used to select a dataset. After that, begin chatting with Claude and ask for information about the dataset. Claude will use search as needed in order to filter and break down queries, and may make multiple queries depending on your task.110111## Development112113### Setup1141151. Clone the repository1162. Install dependencies:117```bash118npm install119```1203. Copy `.env.dist` to `.env` and configure your credentials1214. Build the project:122```bash123npm run build124```125126### Scripts127128- `npm run build`: Build the TypeScript project129- `npm run watch`: Watch for changes and rebuild130- `npm run test`: Run tests131- `npm run inspector`: Run the MCP inspector for debugging132133## License134135MIT136
Full transparency — inspect the skill content before installing.