-
Notifications
You must be signed in to change notification settings - Fork 242
feature: trieve mcp server #3031
Description
Description
MCP Server which allows using Trieve as a retrieval provider inside of Model Context Protocol clients like Claude Desktop.
Users should be able to go to dashboard.trieve.ai, create datasets (AKA "Projects"), add files or chunks to those datasets, and then expose search against those datasets to a MCP client.
An example use-case could be uploading your Obisidian notes and reference research papers or blogs to a Trieve dataset such that you could have your MCP client search against that context for various tasks.
High level, here are the steps I would take to build this out:
- feat:
mkdir ./clients/mcp-server - feat: use a mcp-server starter to get a skeleton to work from inside that folder (typescript required)
- feat: add the
trieve-ts-sdkpackage as a dependency - feat: add
.env.distand withTRIEVE_ORGANIZATION_IDandTRIEVE_API_KEYsuch that an API client from thetrieve-ts-sdkcan be created whencp .env.dist .envand that.envis filled in with prod values - feat: use the get datasets from organization route to expose datasets as resources in the MCP client. Selecting a resource will be required for search to work, because a
DATASET_IDis needed on those calls - feat: add a tool for search which can be called when a dataset Resource is selected such that the MCP client can retrieve context from the selected dataset Resource to help it respond to queries
Target(s)
clients/mcp-server is where the new MCP server should go inside of the repo.
Community channels
Matrix is preferred. Reach out on discord or Matrix for further assistance.
We will provide a Trieve PRO plan to those actively working on this issue.
Requirement for Bounty Payout
You show that your MCP implementation for Trieve works for at least 1 "Project" containing some files you find useful. Those could be research papers, SEC 10K's, your Obsidian markdown files, etc.
Once you put up a PR with that working MCP server, a video showing it works with your example "Project", and that gets reviewed and merged, the bounty will be paid out!