[Feature]: Add official Knowhere MCP server for AI IDEs
Problem statement
Knowhere already provides a strong API for long-document parsing and chunking, but there is no first-party Model Context Protocol (MCP) server.
This leads to several problems for developers building RAG systems inside AI IDEs like Cursor, Claude Code, and Codex:
- Each project must hand-roll HTTP integration, async job polling and result handling.
- API keys and configuration are duplicated per project.
- LLM-based agents cannot directly discover or orchestrate Knowhere’s abilities as tools.
Affected area
Other
Proposed solution
Provide an official Knowhere MCP server that wraps the existing API and exposes a small, agent-friendly tool set:
-
submit_parse_job
Submit a document parsing job (file path or URL) and returnjob_id. Thin wrapper overPOST /v1/jobs. -
get_parse_job_status
Query the status and progress of a job byjob_id. Wrapper overGET /v1/jobs/{id}, normalized for LLMs. -
wait_for_parse_job
Submit or wait for a long-running parse job, internally handling polling. Returns final status and result metadata (including download URLs). -
knowhere_get_hierarchy
Return the parsed document hierarchy tree (sections, subsections, paragraphs, tables, figures) for a given job. -
knowhere_retrieve
Perform Agentic Retrieval over Knowhere’s structured memory (hierarchy + chunks), returning hits with hierarchy paths and source metadata. -
knowhere_read_chunks
Return raw chunks (text / table / image references) with metadata for downstream indexing or debugging.
Implementation details:
- Transport: start with local stdio MCP server for Cursor / Claude Code / Codex.
- Packaging: publish as npm package (e.g.
@knowhere/mcp-server) with ready-to-copy config snippets for popular IDEs. - Docs: add a short “Use Knowhere in Cursor/Claude Code via MCP” guide to the documentation site.
Alternatives considered
No response
Compatibility and migration notes
No response
Additional context
No response