Skip to content

feature: trieve mcp server #3031

@gerred

Description

@gerred

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-sdk package as a dependency
  • feat: add .env.dist and with TRIEVE_ORGANIZATION_ID and TRIEVE_API_KEY such that an API client from the trieve-ts-sdk can be created when cp .env.dist .env and that .env is 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_ID is 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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions