- Chroma Package Search
Chroma Package Search
The Package Search MCP Server adds ground truth context about code packages to AI agents. Our research demonstrates that by exposing the source code of a project's dependencies to a model, we improve its performance on coding tasks and reduce its potential for hallucination. Package Search achieves this by exposing regex and semantic query capabilities over popular open source code packages.
package_search_grep
Executes a grep over the source code of a public package. This tool is useful for deterministically finding code in a package using regex.
package_search_hybrid
Searches package source code using semantic understanding AND optionally regex patterns. This allows for hybrid search, allowing for prefiltering with regex, and semantic ranking.
package_search_read_file
Reads exact lines from a source file of a public package. Useful for fetching specific code regions by line range.
Getting an API Key
Create a Chroma account and get an API key at https://trychroma.com/package-search. Receive $5 worth of free credits, roughly 1,000 semantic queries.
Server Config
{
"mcpServers": {
"package-search-mcp": {
"type": "http",
"url": "https://mcp.trychroma.com/package-search/v1",
"headers": {
"x-chroma-token": "<CHROMA_API_TOKEN>"
}
}
}
}