
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@opencode-llm-wiki/mcp-server
Advanced tools
MCP server for OpenCode LLM Wiki - Knowledge graph backend with vector search
MCP (Model Context Protocol) server for OpenCode LLM Wiki - Knowledge graph backend with vector search.
npm install -g @opencode-llm-wiki/mcp-server
git clone https://github.com/Moowningstar/opencode-llm-wiki.git
cd opencode-llm-wiki/src-mcp
npm install
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"llm-wiki": {
"command": "node",
"args": [
"/path/to/node_modules/@opencode-llm-wiki/mcp-server/src/server.js"
],
"env": {
"LLM_WIKI_API_URL": "http://localhost:19828"
}
}
}
}
The MCP server is automatically configured via opencode.jsonc in the project root:
{
"mcp": {
"servers": {
"llm-wiki": {
"command": "node",
"args": ["node_modules/@opencode-llm-wiki/mcp-server/src/server.js"],
"env": {
"LLM_WIKI_API_URL": "http://localhost:19828"
}
}
}
}
}
Before using the MCP server, make sure the OpenCode LLM Wiki backend is running:
# Clone the main repository
git clone https://github.com/Moowningstar/opencode-llm-wiki.git
cd opencode-llm-wiki
# Build and run the Rust backend
cargo run --bin llm-wiki-server -- --port 19828
The MCP server communicates with the backend via HTTP API.
The server exposes 11 tools for interacting with your knowledge base:
| Tool | Description |
|---|---|
wiki_read | Read a wiki page by path |
wiki_list | List all wiki pages |
wiki_search | Search pages by keyword |
wiki_query_with_context | Intelligent context injection (keyword + vector search) |
wiki_ingest | Ingest documents into the knowledge graph |
| Tool | Description |
|---|---|
wiki_get_graph | Get knowledge graph data (nodes and edges) |
wiki_graph_insights | Analyze graph structure (isolated pages, bridges, statistics) |
wiki_deep_research | Multi-hop reasoning with graph traversal and semantic search |
| Tool | Description |
|---|---|
wiki_get_index | Get index.md (content catalog) |
wiki_get_overview | Get overview.md (global summary with graph statistics) |
wiki_get_purpose | Get purpose.md (wiki goals and scope) |
{
"tool": "wiki_read",
"arguments": {
"path": "entities/gpt-4.md"
}
}
{
"tool": "wiki_query_with_context",
"arguments": {
"query": "transformer architecture",
"max_tokens": 4000
}
}
{
"tool": "wiki_deep_research",
"arguments": {
"query": "attention mechanisms in neural networks",
"max_depth": 3,
"max_results": 10
}
}
{
"tool": "wiki_graph_insights",
"arguments": {
"analysis_type": "all" // Options: "isolated", "bridges", "stats", "all"
}
}
{
"tool": "wiki_ingest",
"arguments": {
"path": "docs/architecture.md",
"recursive": false
}
}
The MCP server acts as a bridge between AI agents (like Claude Desktop) and the OpenCode LLM Wiki backend:
βββββββββββββββββββ
β Claude Desktop β
β (AI Agent) β
ββββββββββ¬βββββββββ
β MCP Protocol (stdio)
β
βββββββββββββββββββ
β MCP Server β
β (Node.js) β
ββββββββββ¬βββββββββ
β HTTP API
β
βββββββββββββββββββ
β Rust Backend β
β (Port 19828) β
β β
β β’ RuVector DB β
β β’ Graph Algos β
β β’ Vector Searchβ
βββββββββββββββββββ
src/server.js): Implements Model Context Protocol, exposes 11 toolssrc/lib/core-api-client.js): HTTP client for backend communicationcd src-mcp
LLM_WIKI_API_URL=http://localhost:19828 node src/server.js
The server runs in stdio mode for MCP protocol communication.
Set the DEBUG environment variable to see detailed logs:
DEBUG=llm-wiki:* LLM_WIKI_API_URL=http://localhost:19828 node src/server.js
You can test individual tools using the MCP inspector or by sending JSON-RPC requests:
# Example: Test wiki_list tool
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"wiki_list","arguments":{}}}' | node src/server.js
LLM_WIKI_PROJECT - Project root path (default: ~/llm-wiki-projects/default)LLM_WIKI_API_URL - API server URL (optional, for future HTTP mode)my-wiki/
βββ .raw/ # Drop files here for auto-ingest
βββ .wiki/
β βββ entities/ # Named things (models, companies, people)
β βββ concepts/ # Ideas, techniques, phenomena
β βββ sources/ # Source summaries
β βββ queries/ # Research questions
β βββ index.md # Content catalog (auto-maintained)
β βββ overview.md # Global summary (auto-generated)
βββ purpose.md # Wiki goals and scope
βββ schema.md # Structure rules
βββ .llm-wiki/ # Internal data (database, cache)
opencode.jsoncnode src-mcp/src/server.js${workspaceFolder}.raw/ and .wiki/ for changesWhen you ask OpenCode a question about your knowledge base:
You: "What do I know about transformer architecture?"
OpenCode internally calls:
1. wiki_query_with_context(query="transformer architecture")
2. Receives relevant wiki pages with context
3. Answers your question with citations
# Check Node.js version (requires >= 18)
node --version
# Reinstall dependencies
cd src-mcp
rm -rf node_modules package-lock.json
npm install
# Verify project structure
ls .wiki/
# Check if pages exist
ls .wiki/entities/
ls .wiki/concepts/
Vector search requires embeddings. If you see warnings about embedding generation:
GPL-3.0
FAQs
MCP server for OpenCode LLM Wiki - Knowledge graph backend with vector search
The npm package @opencode-llm-wiki/mcp-server receives a total of 14 weekly downloads. As such, @opencode-llm-wiki/mcp-server popularity was classified as not popular.
We found that @opencode-llm-wiki/mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.