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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_knowledge_server-0.1.8.tar.gz.
File metadata
- Download URL: mcp_knowledge_server-0.1.8.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fedeed1405c39af6cb3d5c092a897958bdf7ddb76a61add10b74f58c023002a0
|
|
| MD5 |
25d34b5f3a341a6b008d6832dea66828
|
|
| BLAKE2b-256 |
9749adda9baee0a379b33ada0f363e7106bcabf05632b3a068924eb0c78f7bf1
|
File details
Details for the file mcp_knowledge_server-0.1.8-py3-none-any.whl.
File metadata
- Download URL: mcp_knowledge_server-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93610a49788f2e08aae315eaef352805d697184d0bca2b59ac3dd94cdb4e532d
|
|
| MD5 |
f4171bac2e89b6b87ba87d6bd40f96e9
|
|
| BLAKE2b-256 |
653b0c0287ccc048146468b0905afd76e4902af632d5bdb270d07950c5b795f3
|