Skip to main content

opensolr-mcp

MCP (Model Context Protocol) server for Opensolr — gives any AI agent managed Apache Solr search as tools: hybrid (BM25 + kNN) retrieval, server-side GPU embeddings, document indexing, and grounded RAG answers.

No embedding model to configure. No vector database to run. One API key.

Tools

Tool What it does
opensolr_search Hybrid (keyword + semantic) or pure semantic search, with Solr filters
opensolr_ai_answer Grounded RAG answer generated only from your indexed content
opensolr_add_documents Index plain text + metadata (embedded server-side)
opensolr_delete_documents Remove documents by id
opensolr_list_indexes / opensolr_index_info Inspect the account's indexes
opensolr_create_index Provision a vector-enabled index (us, de, fi)
opensolr_vector_regions Live list of vector-enabled regions

Setup

Get a free Opensolr account (15-day trial, no card) at opensolr.com/register and copy your API key from Account.

Claude Desktop / Claude Code

{
  "mcpServers": {
    "opensolr": {
      "command": "uvx",
      "args": ["opensolr-mcp"],
      "env": {
        "OPENSOLR_EMAIL": "you@example.com",
        "OPENSOLR_API_KEY": "YOUR_OPENSOLR_API_KEY"
      }
    }
  }
}

Cursor / Windsurf / any MCP client

Same shape — stdio transport, command uvx opensolr-mcp (or pipx run opensolr-mcp), with OPENSOLR_EMAIL and OPENSOLR_API_KEY in env.

Example agent session

You: Index our FAQ answers, then find everything about refunds.

The agent calls opensolr_add_documents(index="faq__dense", texts=[...]), then opensolr_search(index="faq__dense", query="refund policy", hybrid=True) — BM25 catches the exact word "refund", kNN catches "giving customers their money back", and the scores fuse per document.

Notes

  • Vector-enabled indexes run on Opensolr's Solr 9.x environments — currently us (Chicago), de (Germany), fi (Finland), fetched live via opensolr_vector_regions. Additional dedicated regions can be deployed on request (paid add-on): support@opensolr.com.
  • Every index is also plain Apache Solr with the native /select API — nothing is locked behind the tools.
  • Python sibling for LangChain: langchain-opensolr · Product page: opensolr.com/langchain

MIT license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opensolr_mcp-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opensolr_mcp-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file opensolr_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: opensolr_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.12

File hashes

Hashes for opensolr_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2cfa9dc0f34a7259ec25ecd93ad068a80735188619e7269c096a850a9e601f84
MD5 89f016527024ac539053dea5c2471b6c
BLAKE2b-256 5d6e81d06e5bfb5c18e9e736edd9b11b898eb654576baf16e473b9d7bc90dbfa

See more details on using hashes here.

File details

Details for the file opensolr_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: opensolr_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.12

File hashes

Hashes for opensolr_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da8ac61a4808e23f4db820ffcb83a9d4e62ed224c924fa1f6a8fc947559a3a93
MD5 0bb7ca18c43f41f16efd79a9eaf69525
BLAKE2b-256 b8adaf24edd57cd006e6a26b563bb12e39b5432779920fe9cc1e99426ddc2567

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page