Lmstudio Agent
БесплатноНе проверенProvides local agent capabilities for LM Studio including file I/O, terminal execution, and web search.
Описание
Provides local agent capabilities for LM Studio including file I/O, terminal execution, and web search.
README
A lightweight MCP (Model Context Protocol) server that provides local agent capabilities for LM Studio: file I/O, terminal execution, and web search.
Features
| Tool | Description |
|---|---|
agent_read_file |
Read text files with offset/limit pagination and encoding support |
agent_write_file |
Write or append to files, with optional parent directory creation |
agent_execute_command |
Execute shell commands with pipes, redirections, custom working directory, environment variables, and configurable timeout |
agent_web_search |
Search the web via DuckDuckGo, Bing, Google, or Baidu (switchable), returning titles, URLs, and snippets |
Requirements
- Python 3.10+
- Dependencies listed in
requirements.txt
Installation
cd lmstudio_agent_mcp
pip install -r requirements.txt
Usage with LM Studio
Add the following to your LM Studio MCP server configuration:
{
"mcpServers": {
"agent_mcp": {
"command": "python3",
"args": ["/absolute/path/to/lmstudio_agent_mcp/server.py"]
}
}
}
If you are using a virtual environment, replace python3 with the absolute path to your venv's Python binary (e.g. /path/to/venv/bin/python).
Usage with Other MCP Clients
The server uses stdio transport by default. Start it directly:
python3 server.py
For remote access, you can switch to streamable HTTP:
# Add to the bottom of server.py
if __name__ == "__main__":
mcp.run(transport="streamable_http", port=8000)
Tool Reference
agent_read_file
Read the contents of a text file.
| Parameter | Type | Default | Description |
|---|---|---|---|
path |
string | (required) | Absolute or relative path to the file |
offset |
int | 0 |
Number of lines to skip from the beginning |
limit |
int | null | 200 |
Maximum number of lines to return (null = unlimited) |
encoding |
string | "utf-8" |
Text encoding |
agent_write_file
Write text content to a file.
| Parameter | Type | Default | Description |
|---|---|---|---|
path |
string | (required) | Absolute or relative path to the file |
content |
string | (required) | Text content to write |
encoding |
string | "utf-8" |
Text encoding |
append |
bool | false |
If true, append instead of overwrite |
create_dirs |
bool | true |
If true, create parent directories when missing |
agent_execute_command
Execute a terminal command.
| Parameter | Type | Default | Description |
|---|---|---|---|
command |
string | (required) | Shell command to execute |
working_directory |
string | null | null |
Working directory (defaults to server cwd) |
timeout |
float | 60.0 |
Maximum execution time in seconds (1-600) |
env |
object | null | null |
Additional environment variables to set |
shell |
bool | true |
Execute through system shell (required for pipes/redirects) |
agent_web_search
Search the web using multiple search engines.
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
string | (required) | Search query (1-500 chars) |
engine |
string | "duckduckgo" |
Search engine: duckduckgo, bing, google, or baidu |
num_results |
int | 5 |
Maximum results to return (1-20) |
region |
string | null | null |
Region/locale code (e.g. wt-wt, us-en, zh-cn) |
Security Notes
- File paths are resolved to absolute paths;
~expansion is supported - Large files (>10 MiB) are rejected to prevent memory exhaustion
- Command execution has a configurable timeout (max 600s)
- Do not expose this server to untrusted clients —
agent_execute_commandcan run arbitrary shell commands
License
MIT
Установка Lmstudio Agent
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/oemoem12/lmstudio-agent-mcpFAQ
Lmstudio Agent MCP бесплатный?
Да, Lmstudio Agent MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Lmstudio Agent?
Нет, Lmstudio Agent работает без API-ключей и переменных окружения.
Lmstudio Agent — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Lmstudio Agent в Claude Desktop, Claude Code или Cursor?
Открой Lmstudio Agent на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Lmstudio Agent with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
