J
johnrobinsn/askit
LLM Function Calling Library and CLI with Support for MCP Servers
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
- 复制上面的命令
- 粘成
claude_desktop_config.json里mcpServers的一项(本地服务器用 command + args,示例见 客户端接法) - 重启客户端
取自该仓库的安装命令
pip install git+https://github.com/johnrobinsn/askit.git
解析自我们于 2026-11-07 抓取的该仓库 README;我们未执行过。
这条是仓库自己写的安装方式,不是 MCP 客户端配置,所以不生成 JSON。
配置项的键名以你的客户端为准:客户端与 CLI
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
- 安装
pip install git+https://github.com/johnrobinsn/askit.git
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
pip install git+https://github.com/johnrobinsn/askit.git。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# AskIt MCP Client and Library - Apache License 2.0
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
AskIt is a flexible asyncio Python library and CLI tool that allows various LLM models to extend their abilities by invoking services from Model Context Protocol (MCP) servers and by calling locally-defined Python functions.
## Features
Simple and Lightweight
Connect to multiple MCP servers simultaneously
Supports STDIO, SSE and Streamable-HTTP MCP Servers
Support for Tool Use/Function Calling with MCP Servers Written in any Language
Support for Tool Use/Function Calling with Locally-Defined Python Functions
Supports Multiple LLM Providers
OpenAI and XAI (Grok) Currently Supported
Anthropic, Ollama, and LMStudio Support __Coming Soon__
Optional Support for Streaming LLM Responses
Securely Store API Keys in Environment Variables
## Installation
To get started with AskIt MCP, you need to have Python 3.11+ installed on your system. A python version manager is recommended. You can then install the package using pip:
bash
pip install git+https://github.com/johnrobinsn/askit.git
## Getting Started with the AskIt CLI
The easiest way to get started with AskIt is to use its integrated command-line interface (CLI) tool. The CLI allows you to interact with MCP servers and LLMs using natural language queries, making it easy to access and manipulate data from various sources.
The following command will leverage the default OpenAI model (gpt-4o-mini) to enter into a "chat-eval" loop with the configured LLM.
You just need to provide your OpenAI API key as a command line argument.
eg.
bash
python -m askit --api_key="your_openai_api_key_here"
You can also provide the OpenAI API key as a provider specific environment variable.
bash
OPENAI_API_KEY="your_openai_api_key_here" python -m askit
You can specify a different model or provider using command-line options. Here is an example using the XAI provider (Grok) with a specific model. You will need to provide your XAI API key as an environment variable or command line argument.
bash
python -m askit --model="grok-4-latest" --provider="XAI" --api_key="your_xai_api_key_here"
Find out more about Provider Specific Environment Variables.
## Connect MCP Servers to Askit
You can connect to multiple MCP servers by creating a mcp_config.json file in your current working directory. This file should contain the configuration for the MCP servers you want to connect to. The AskIt CLI will automatically load this configuration and connect to the specified MCP servers.
eg.
json
"mcpServers": {
"example-stdio": {
"command" : "node",
"cwd" : "/mnt2/code/mcpcalc",
"args": [
"mcpcalc.mjs"
],
"env": {
"debug_log": "false"
},
"example-streamable-http": {
"transport" : "http",
"url" : "http://127.0.0.1:8000/mcp",
"disabled" : false
As a reference, a sample mcp_config.json.example file is provided in the root of the repository. You can copy this file to mcp_config.json and modify it to suit your needs.
You can add as many MCP servers as you need and the client will connect to all of them and make their tools available to the configured LLM. There are two primary types of MCP servers supported by AskIt, stdio and Streamable HTTP. The former is used for MCP servers that are located on your local machine, while the latter can be used to access MCP servers that are hosted remotely.
## Features
Simple and Lightweight
Connect to multiple MCP servers simultaneously
Supports STDIO, SSE and Streamable-HTTP MCP Servers
Support for Tool Use/Function Calling with MCP Servers Written in any Language
Support for Tool Use/Function Calling with Locally-Defined Python Functions
Supports Multiple LLM Providers
OpenAI and XAI (Grok) Currently Supported
Anthropic, Ollama, and LMStudio Support __Coming Soon__
Optional Support for Streaming LLM Responses
Securely Store API Keys in Environment Variables
## Installation
To get started with AskIt MCP, you need to have Python 3.11+ installed on your system. A python version manager is recommended. You can then install the package using pip:
bash
pip install git+https://github.com/johnrobinsn/askit.git
## Getting Started with the AskIt CLI
The easiest way to get started with AskIt is to use its integrated command-line interface (CLI) tool. The CLI allows you to interact with MCP servers and LLMs using natural language queries, making it easy to access and manipulate data from various sources.
The following command will leverage the default OpenAI model (gpt-4o-mini) to enter into a "chat-eval" loop with the configured LLM.
You just need to provide your OpenAI API key as a command line argument.
eg.
bash
python -m askit --api_key="your_openai_api_key_here"
You can also provide the OpenAI API key as a provider specific environment variable.
bash
OPENAI_API_KEY="your_openai_api_key_here" python -m askit
You can specify a different model or provider using command-line options. Here is an example using the XAI provider (Grok) with a specific model. You will need to provide your XAI API key as an environment variable or command line argument.
bash
python -m askit --model="grok-4-latest" --provider="XAI" --api_key="your_xai_api_key_here"
Find out more about Provider Specific Environment Variables.
## Connect MCP Servers to Askit
You can connect to multiple MCP servers by creating a mcp_config.json file in your current working directory. This file should contain the configuration for the MCP servers you want to connect to. The AskIt CLI will automatically load this configuration and connect to the specified MCP servers.
eg.
json
"mcpServers": {
"example-stdio": {
"command" : "node",
"cwd" : "/mnt2/code/mcpcalc",
"args": [
"mcpcalc.mjs"
],
"env": {
"debug_log": "false"
},
"example-streamable-http": {
"transport" : "http",
"url" : "http://127.0.0.1:8000/mcp",
"disabled" : false
As a reference, a sample mcp_config.json.example file is provided in the root of the repository. You can copy this file to mcp_config.json and modify it to suit your needs.
You can add as many MCP servers as you need and the client will connect to all of them and make their tools available to the configured LLM. There are two primary types of MCP servers supported by AskIt, stdio and Streamable HTTP. The former is used for MCP servers that are located on your local machine, while the latter can be used to access MCP servers that are hosted remotely.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/johnrobinsn-askit/)
- 来源
- awesome · https://github.com/johnrobinsn/askit
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。