HM

huoji120/mcp-research

Productivity workflow

This page was translated automatically. Technical details may differ from the original. View the original

22 stars 4 forks Quality 57 Trend 0

A single-tool MCP Server written in Go, specifically designed to prioritize calling the host model when "uncertain about a knowledge point."

Overview

A single-tool MCP Server written in Go, specifically designed to prioritize calling the host model when "uncertain about a knowledge point." - Call OpenAI to analyze problem types - Use DuckDuckGo to search public web pages - Use Go to crawl the main text of web pages and remove HTML noise - Optionally, connect to browser rendering services and then capture dynamic page content - Proactively expand multiple keywords for implementation-type problems, covering official documentation, API references, samples, usage examples, troubleshooting - Summarize "What is this, what features and structure are it" - Add code examples where appropriate - Save results to the local Markdown knowledge base - Next time, prioritize checking the local knowledge base; after expiration, automatically reconnect and refresh - If there is no precise hit, scans similar Markdown entries and lets the MCP internal model decide whether to reuse or refresh - Security terminology explanation: For example, what is Kaspersky PDM—product/framework/API concept explanation—programming pattern explanation—technical issues requiring the latest public information - OPENAI_BASE_URL, default https://api.openai.com - OPENAI_MODEL, default gpt-4.1-mini - PROXY_URL, e.g., http://127.0.0.1:7890 - DUCKDUCKGO_BASE_URL, default https://html.duckduckgo.

Overview (machine translated)

A single-tool MCP Server written in Go, specifically designed to prioritize calling the host model when “uncertain about a knowledge point.”

Tool name: research_knowledge

It will:

  • Call OpenAI to analyze the type of problem
  • Use DuckDuckGo to search public web pages
  • Use Go to manually capture the webpage body and remove HTML noise
  • Optionally, after using browser rendering services, dynamic page content can be captured
  • Proactively expands multiple sets of keywords for implementation-type issues, covering official documentation, API references, samples, usage examples, and troubleshooting
  • Summarize “What is this, what are its features, and what is its structure?”
  • Add code examples when appropriate
  • Save the results to the local Markdown knowledge base
  • Next time, prioritize checking the local knowledge base; after expiration, it will automatically reconnect and refresh
  • If there is no exact hit, similar Markdown entries are scanned, and the MCP internal model decides whether to reuse or refresh

Applicable Scenarios

  • Security terminology explanation: for example 什么是卡巴斯基 PDM
  • Product/framework/API concept explanation
  • Explanation of programming patterns
  • Technical issues requiring the latest publicly available information

TOML Configuration

By default, it reads config.toml from the root directory of the project.

You can copy it first:

Example:

Read priority:

  1. Default values
  2. config.toml
  3. Environment variable coverage

If you want to specify a different configuration file, you can set it as:

  • CONFIG_FILE

Environment variables

Required fields:

  • OPENAI_API_KEY

Optional:

  • OPENAI_BASE_URL, default https://api.openai.com
  • OPENAI_MODEL, default gpt-4.1-mini
  • PROXY_URL, for example http://127.0.0.1:7890
  • DUCKDUCKGO_BASE_URL, default https://html.duckduckgo.com/html
  • BROWSER_RENDERING, default false
  • BROWSER_RENDER_BASE_URL, default is null
  • HTTP_TIMEOUT_SECONDS, default 300
  • RESEARCH_TIMEOUT_SECONDS, default 300
  • RESEARCH_MAX_RESULTS, default 5
  • MAX_SEARCH_QUERIES, default 6
  • MIN_PER_QUERY_RESULTS, default 5
  • MAX_PER_QUERY_RESULTS, default 10
  • MIN_RESULT_POOL, default 12
  • MAX_RESULT_POOL, default 20
  • MAX_SYNTHESIS_RESULTS, default 8

This page was translated automatically. Technical details may differ from the original.

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "research-knowledge": { "command": "go", "args": ["run", "./cmd/research-mcp"], "cwd": "F:/project/mcp-research", "env": {} } } }