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 searchrerank_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:
- Clone the repository
- Create a virtual environment:
python -m venv .venv - Activate the virtual environment:
- Windows:
.venv\Scripts\activate - Unix/MacOS:
source .venv/bin/activate
- Windows:
- Install dependencies:
pip install -e ".[dev]"
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langsearch_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langsearch_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5251bd94164051cc9ae849670e777bcad2ce3c7f3bfb182652dcf2d3a11bb329
|
|
| MD5 |
0781ac1ae7d753a2f14dea960fdfda42
|
|
| BLAKE2b-256 |
005477ab249240958d58905e9fd995529663e69ea3b02fce0790ed01c2bd747c
|