Skip to content

studykit/mcp-jar-indexer

Repository files navigation

JAR Indexer MCP Server

An MCP (Model Context Protocol) server that enables LLMs to access and analyze Java/Kotlin library source code by indexing JAR files and Git repositories.

Quick Start

# Install dependencies
uv sync

# Run the MCP server
uv run python -m src.main

Installation

  1. Clone this repository:
git clone https://github.com/studykit/mcp-jar-indexer.git
cd jar-indexer
  1. Install dependencies:
uv sync
  1. Add to Claude Desktop configuration (see below)

Claude Desktop

Add the following configuration to your Claude Desktop config file:

Location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Configuration:

{
  "mcpServers": {
    "jar-indexer": {
      "command": "uv",
      "args": ["--directory", "/path/to/jar-indexer", "run", "python", "-m", "src.main"]
    }
  }
}

Replace /path/to/jar-indexer with the actual path to this project directory.

Available Tools

Once connected, the server provides these MCP tools:

  • register_source: Register JAR files, directories, or Git repositories for indexing
  • index_artifact: Index a specific Maven artifact by downloading its source JAR
  • list_artifacts: List all registered and indexed artifacts
  • list_folder_tree: Browse the folder structure of indexed artifacts
  • get_file: Read the contents of specific files from indexed sources
  • search_file_names: Search for files by name patterns within indexed sources
  • search_file_content: Search for content within files using regex patterns

For detailed usage instructions, see the project documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages