Skip to main content

Language-based search MCP server for semantic search and document reranking

Project description

LangSearch MCP

A language-based search MCP server that provides semantic search and document reranking capabilities.

Features

  • Semantic web search
  • Document reranking based on relevance
  • Easy integration with MCP clients like Cherry Studio

Installation

You can install the package using pip:

pip install langsearch-mcp

Or install from source:

git clone https://github.com/yourusername/langsearch-mcp
cd langsearch-mcp
pip install .

Usage

As a Command Line Tool

After installation, you can run the MCP server directly from the command line:

langsearch-mcp

As an MCP Server

The server can be used with any MCP client, including Cherry Studio. The server provides the following endpoints:

  • web_search: Perform semantic web search
  • rerank_documents: Rerank documents based on relevance to a query

Configuration

The server can be configured using environment variables:

  • PORT: The port to run the server on (default: 8000)
  • Add any other environment variables your server uses

Development

To set up the development environment:

  1. Clone the repository
  2. Create a virtual environment: python -m venv .venv
  3. Activate the virtual environment:
    • Windows: .venv\Scripts\activate
    • Unix/MacOS: source .venv/bin/activate
  4. Install dependencies: pip install -e ".[dev]"

License

MIT License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

langsearch_mcp-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file langsearch_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: langsearch_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for langsearch_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82eaf6ae6225cbd78a783c5efe21aebce2de1bb410d5d282e8f91c54d7585455
MD5 3db995224f3e27b93b8c12486dee27a7
BLAKE2b-256 fe64dfac3d2ab6ca20e51be9246bcabc343ea437d2813e28ed216e7a5e38fd52

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 Pingdom Monitoring Sentry Error logging StatusPage Status page