yuque_get_current_userLABSCO SUMMARY
New documents are private unless you say otherwise.
public defaults to 0, so a document an assistant creates is not visible to anyone else until you change that — the safe default for a tool that writes into a shared workspace. The one thing to get right at setup is the token: it is read from the environment rather than the config file, so a working config.yaml with no YUQUE_TOKEN exported still fails at the first API call.
What it is
A Yuque (语雀) knowledge-base server written in Go. It covers the document lifecycle against the Yuque v2 API: fetch a document, create one, update its title or body, search across your documents, and read the current user's profile.
What you get
yuque_get_documentfetches one document, takingbook_id(the knowledge base) anddoc_id(ID or slug)yuque_create_documentcreates one, takingbook_idandtitle, with optionalbody,format(markdown by default) andpublic(private by default)yuque_update_documentedits an existing document'stitle,body,formatorpublicsettingyuque_search_documentssearches byqueryyuque_get_current_userreturns the authenticated user's details
Requirements
Go, and a Yuque API token supplied as the YUQUE_TOKEN environment variable. Run go mod tidy, then go run cmd/server/main.go -f config.yaml; the server listens on http://localhost:8080. config.yaml sets the host, port, the Yuque base URL (https://www.yuque.com/api/v2) and a 30s message timeout, and holds the CORS list. In a client, set cwd to the checkout and put YUQUE_TOKEN in the entry's env.
Setup effort
Build from source — get the source, then follow the project's own run instructions
USE CASES
Pulling a spec into the conversation
Fetch a document by its slug and work from its actual content rather than a summary.
Writing meeting notes straight into the knowledge base
Create a markdown document in the right knowledge base without opening Yuque.
Finding the page that mentions something
Search across documents by keyword and open the match.
Updating a doc that has drifted
Edit the body or retitle it in place instead of creating a second version.
5 tools
Listed in project docs. Your client may show a different list.
yuque_get_documentyuque_create_documentyuque_update_documentyuque_search_documentsBEFORE YOU INSTALL
What to know first
Tools you get
5 tools named in the project's documentation.
Requires
- go on PATH
- YUQUE_TOKEN in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
go run cmd/server/main.go -f config.yamlMCP Clients
Cursor
{
"mcpServers": {
"yuque": {
"command": "go",
"args": [
"run",
"cmd/server/main.go",
"-f",
"config.yaml"
],
"cwd": "<YOUR_PATH_TO_YU_QUE_MCP>",
"env": {
"YUQUE_TOKEN": "<YOUR_YUQUE_TOKEN>"
}
}
}
}