Skip to main content

pysearch_mcp

This repo contains a mcp server that should improve the search of python code and examples.

For this, it creates a search index based on lunr, and a mcp server based on fastmcp.

To retrieve input, it can read from:

  • existing lunr search indexes, e.g. from existing mkdocs documentation
  • code of virtual environments (narrow the package search with search patterns)

Usage

Terminal

To call the mcp server, you can use:

# module call
uv pip install pysearch_mcp
python -m pysearch_mcp

# script call
uv pip install pysearch_mcp
pysearch_mcp

# uvx tool
uvx pysearch_mcp@0.1.0

VS Code

Use one of the methods mentioned above with the given args in mcp.json of vscode.

{
  "servers": {
      "pysearch_mcp": {
        "type": "stdio",
        "command": "uvx",
        "args": [
          " pysearch_mcp@0.1.0", // pin the version in production
          "--venv-paths", ".venv",  // list one or more venvs
          "--venv-search-patterns", "pysearch*", // limit to a list of patterns to avoid loading all packages to the index
          "--search-index-paths", "tests/repo/search/search_index.json" // add additional search indexes
        ],
      }
  },
  "inputs": []
}

In Agent mode, use:

#py_search <my_search_query>

Example:
With #pysearch

How do i use function xyz

Metadata

Release files for pysearch_mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysearch_mcp 0.1.0
File Size Uploaded Provenance
pysearch_mcp-0.1.0.tar.gz 119.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pysearch_mcp 0.1.0
File Interpreter ABI Platform
pysearch_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 128.7 kB

Release files / pysearch_mcp-0.1.0.tar.gz

Download URL pysearch_mcp-0.1.0.tar.gz
Size 119.9 kB
Tags Source
SHA-256 checksum
How to use checksums
69fd1c157a985128912693f0d4fb8ec1a9e6e4a9727967a9392d991c5fcee02f
BLAKE2b-256 checksum
How to use checksums
8300dd8c510b639dd35a8c6ba149244df0dc414853fc5fed1a51ed74c592d34e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pysearch_mcp-0.1.0-py3-none-any.whl

Download URL pysearch_mcp-0.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbf32e892727f1eddb58851b98bedc73f5fe6032a6442f58eac729e940fcddaf
BLAKE2b-256 checksum
How to use checksums
8bd828e8efc2ef5b53e237e4e1215d42c62a84125b88f8fad8539ab0f8793114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pysearch_mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page