Skip to main content

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.

Metadata

Release files for mcp-knowledge-tools 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 mcp-knowledge-tools 0.1.0
File Size Uploaded Provenance
mcp_knowledge_tools-0.1.0.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.5 kB

Release files / mcp_knowledge_tools-0.1.0.tar.gz

Download URL mcp_knowledge_tools-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
acd4d6ad3913b7119628147fa5241986277823a3421eb49472b7a8cf4209347c
BLAKE2b-256 checksum
How to use checksums
13aff4d71558fcc3c06758bbdbaf7fe91912f4891c8c66f80cd1235a32a97d37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

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

Download URL mcp_knowledge_tools-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18af3a30029677fe7705be4c7ecbdb59560bca0dea73a9469a5d67637ba00dad
BLAKE2b-256 checksum
How to use checksums
03d66e065a5b65f2819f9902fa979831f1d8ffff7f46529169f1d0947265eeb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Security for mcp-knowledge-tools 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.

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