Skip to main content

MCP server exposing internal knowledge retrieval tools.

Project description

MCP Knowledge Tools

This repository implements a Model Context Protocol (MCP) server that exposes three HTTP-backed retrieval tools for internal knowledge bases.

Available tools

Tool name Description Dataset ID
query_ux_knowledge Retrieves UX guidelines, templates, and examples. cab02597-6315-456c-92d3-19a65e3e7efd
query_lean_knowledge Retrieves Lean / Continuous Improvement documentation. 67659dbe-4387-4122-8eb9-1d2005bea6a2
query_automation_step Retrieves automation process steps and related materials. b68de37f-a9f7-41fc-948f-eb89ca145770

Each tool sends a POST request to the Dify dataset retrieval API:

POST https://api.dify.ai/v1/datasets/{data_id}/retrieve
Authorization: Bearer <dataset token>
Content-Type: application/json
{"query": "<your question>"}

Configuration

Set the dataset token through the DIFY_DATASET_TOKEN environment variable. A fallback token (dataset-gCRaKZgnKtvqLdeuoCFjKiME) is bundled for quick testing, but production deployments should override it.

export DIFY_DATASET_TOKEN="dataset-..."

Installation

The project is published as a standard Python package and can be installed with your preferred Python packaging tool.

Using uv

uv offers fast Python environment management and package installation.

uv venv
source .venv/bin/activate
uv pip install .

Using pip

The project is published as a standard Python package.

python -m venv .venv
source .venv/bin/activate
pip install .

Running the MCP server

The pyproject.toml file defines a console script entry point. After installation you can launch the server via:

mcp-knowledge-server

Alternatively you can run the module directly:

uv run mcp-knowledge-server

The server uses FastMCP from the Model Context Protocol reference implementation, so it can be registered with compatible MCP clients.

Project details


Download files

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

Source Distribution

mcp_knowledge_server-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

mcp_knowledge_server-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_knowledge_server-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mcp_knowledge_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da996f6d6c6b29044c79a8f7b2a0fbf021479d65e757fe9bec55e5ad605874d3
MD5 8c7581cdb0051477e6ce9ba97b4bdddb
BLAKE2b-256 74f6b740e247b36376b9d50ee37cb0ec03872d91e5b80357785211ff5dbb50ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_knowledge_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d224d6e1321123cc8f4b4296d9ee349d137d5199d5a2ba4e7eb8eaae50e88e57
MD5 01cea6d33c155f7c0a3833c6045bbb28
BLAKE2b-256 a5330ac20739969ad1e94d9de3ce2753138a848ee6d34d787715465a28083f10

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