askr

askr

An MCP assistant that provides asynchronous and parallel Q\&A capabilities for AI clients using OpenAI-compatible APIs. It supports streaming, chain-of-thought detection, and local session persistence with a dedicated management panel for configuration.

Category
访问服务器

README

<div align="center">

askr

MCP Q&A Assistant / MCP 问答助手

Async Q&A capabilities for AI clients via MCP protocol, powered by any OpenAI-compatible API.

通过 MCP 协议为 AI 客户端提供异步问答能力,后端对接任意 OpenAI 兼容 API。

English | 中文文档

🤖 100% Vibe Coding — Built entirely through AI-assisted development.

⭐ If you like this project, please give it a star!

</div>


Quick Start

# First time: launch the management panel to configure your provider
npx @sweatent/askr -m

# Start the MCP stdio server
npx @sweatent/askr

Features

  • question — Ask a single question with streaming support
  • agentq — Ask multiple independent questions in parallel (configurable concurrency)
  • list — View recent session statuses
  • check — Retrieve session results with blocking wait, full content, and chain-of-thought support

MCP Client Integration

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "askr": {
      "command": "npx",
      "args": ["askr"]
    }
  }
}

Claude Code

Add via CLI or global config:

claude mcp add askr -- npx @sweatent/askr

Or manually edit .claude/settings.json:

{
  "mcpServers": {
    "askr": {
      "command": "npx",
      "args": ["askr"]
    }
  }
}

Cursor / Other MCP Clients

Configure a stdio-type MCP server with command npx @sweatent/askr per your client's documentation.

Management Panel

npx @sweatent/askr -m
# or
npx @sweatent/askr --manage

Menu options:

  1. Manage Provider — Configure Base URL, API Key, model (auto-fetch model list or manual input)
  2. Manage Questions — View/close active sessions
  3. View Logs — Browse session history with question, chain-of-thought, and answer (live refresh for running sessions)
  4. More Settings — Max concurrency, timeout, fold characters, system prompt, language

Supports Chinese and English interfaces.

Configuration

Config file is stored in the system data directory:

Platform Path
Windows %AppData%/askr/config.json
macOS ~/Library/Application Support/askr/config.json
Linux ~/.config/askr/config.json
{
  "language": "en",
  "provider": {
    "baseUrl": "https://api.example.com",
    "apiKey": "sk-xxx",
    "model": "gpt-4",
    "stream": true
  },
  "settings": {
    "maxConcurrent": 5,
    "timeout": 150,
    "foldChars": 1000,
    "systemPrompt": "You are a search assistant..."
  }
}

Base URL

  • Standard: https://api.example.com — automatically appends /v1/chat/completions
  • Custom endpoint: https://api.example.com/custom/path# — trailing # means use as-is (strip the #)

Tool Reference

question

{ "content": "What is REST and its core principles?" }

Ask a single question. Answers exceeding foldChars are truncated; use check for full content. Returns session ID on timeout.

agentq

{ "questions": ["What is Docker?", "What is Kubernetes?"] }

Parallel questions, up to maxConcurrent. Each question runs in isolated context, returning its own result or session ID.

list

{ "count": 5 }

Returns the most recent N session summaries (ID, timestamp, status, question preview).

check

{ "id": "a3f8k2", "showFull": true, "showThinking": true }

Retrieve session result. Blocks if the session is still running. Parameters:

  • showFull — Return full answer without truncation
  • showThinking — Include chain-of-thought content

Highlights

  • Streaming — SSE streaming with real-time session file updates
  • Auto fallback — Automatically falls back to non-streaming if streaming fails
  • Chain-of-thought separation — Detects <think> tags, reasoning_content, and thinking fields
  • Hot reload — Config changes from the management panel take effect immediately, no restart needed
  • Session persistence — All Q&A records saved locally with full history browsing

Requirements

  • Node.js >= 18

Recommended Prompt

Add the following to your project's CLAUDE.md or other AI client system prompt for best results:

## askr Usage Guidelines

You can use askr MCP tools to search and ask an external AI to assist with your tasks.

### When to Use

- **Pre-implementation research**: Before using unfamiliar or uncertain public APIs / library functions, query their signatures, parameters, usage, and caveats to avoid writing incorrect code from memory
- **Unfamiliar concepts**: Look up terms, protocols, or design patterns you don't fully understand
- **Latest information**: Query recently released versions, changelogs, news, or announcements that may not be covered in your training data
- **Troubleshooting**: When facing hard-to-solve errors or unexpected behavior, search for solutions including GitHub Issues, Stack Overflow discussions, etc.
- **Solution comparison**: When deciding between multiple technical approaches, query their trade-offs and community recommendations
- **Configuration & compatibility**: Look up platform-specific configurations or known compatibility issues for particular environments or versions

### Principles

1. Prefer using askr to search first; only rely on your own knowledge when you are fully confident it is accurate and up-to-date
2. Be specific in your questions, include necessary context (language, framework, version, etc.), avoid vague queries
3. Combine related sub-questions into one question; use agentq for unrelated parallel questions
4. Use check to retrieve timed-out results; re-ask if check times out twice
5. Use check(id, showFull: true) when you need the full untruncated answer

Acknowledgements

Thanks to the LinuxDo community for the support!

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选