LLMling
БесплатноНе проверенA declarative framework that manages LLM resources, prompts, and tools through YAML configuration files. It enables LLMs to interact with external data, CLI com
Описание
A declarative framework that manages LLM resources, prompts, and tools through YAML configuration files. It enables LLMs to interact with external data, CLI commands, and Python functions using the Model Context Protocol.
README
PyPI License Package status Monthly downloads Distribution format Wheel availability Python version Implementation Releases Github Contributors Github Forks Github Issues Github Issues Github Watchers Github Stars Github Repository size Github last commit Github release date Github language count Github commits this month Package status PyUp
Declarative resources, prompts and tools for LLM applications, defined in YAML.
LLMling turns a YAML file into a runtime that serves content (resources), message templates (prompts) and Python callables (tools) to an LLM consumer. It was built as the backend for mcp-server-llmling and llmling-agent; its ideas live on in agentpool.
Installation
pip install llmling
Optional extras: llmling[git] (repository resources), llmling[watch_files]
(file watching via watchfiles), llmling[fsspec_extras] (HTTP/GitHub filesystems).
Quickstart
Define an environment in config.yml:
resources:
greeting:
type: text
content: "Hello from LLMling!"
notes:
type: path
path: "./notes.md"
description: "Project notes"
tools:
word_count:
import_path: "my_tools.word_count" # any importable callable
description: "Count words in a text"
prompts:
summarize:
type: text
description: "Summarize a text"
messages:
- role: system
content: "You are a concise assistant."
- role: user
content: "Summarize this:\n{text}"
arguments:
- name: text
description: "Text to summarize"
required: true
With my_tools.py on the import path:
def word_count(text: str) -> int:
"""Count the words in a text."""
return len(text.split())
Use it from Python:
import asyncio
from llmling import RuntimeConfig
async def main() -> None:
async with RuntimeConfig.open("config.yml") as runtime:
print(runtime.list_resource_names()) # ['greeting', 'notes']
resource = await runtime.load_resource("greeting")
print(resource.content) # Hello from LLMling!
count = await runtime.execute_tool("word_count", text=resource.content)
print(count) # 3
messages = await runtime.render_prompt("summarize", {"text": resource.content})
for message in messages:
print(message.role, message.get_text_content())
asyncio.run(main())
Or from the command line:
llmling config init my_config.yml # create a starter config
llmling config add myconfig my_config.yml # store it under a name
llmling config set myconfig # make it the active config
llmling resource list -c config.yml
llmling resource load greeting -c config.yml
llmling tool call word_count text="a b c" -c config.yml
llmling prompt show summarize -c config.yml
Features
- Resources:
path(files, directories, globs, any fsspec/UPath URL, optional file watching),text,cli(command output),source(Python module source),callable(return value of a Python function) andrepository(files from a git repo). Resources can be grouped (resource_groups) and run through processors. - Prompts: static message templates (
type: text), function-based prompts (type: function, arguments derived from the signature and docstring) and file-based prompts (type: file), with argument validation and completions. - Tools: any importable callable becomes a tool with an OpenAI-compatible schema.
Toolsets add collections of tools from OpenAPI specs (
type: openapi), entry points (type: entry_points) or customToolSetclasses (type: custom). - Processors: function-based and Jinja2 processors to transform resource content.
- Runtime registration: register resources, tools and prompts at runtime via
RuntimeConfig(register_tool,register_static_prompt, ...). - Dependencies:
global_settings.requirementsand PEP 723scriptsdeclare packages needed by tools and prompts. - Typed: pydantic models throughout; a JSON schema for the config format lives in
schema/config-schema.json.
More resource and toolset examples
global_settings:
requirements: ["myapp"] # installed on demand if missing
resources:
python_files:
type: path
path: "./src/**/*.py"
watch:
enabled: true
patterns: ["*.py", "!**/__pycache__/**"]
git_changes:
type: cli
command: "git diff HEAD~1"
shell: true
timeout: 5.0
utils_module:
type: source
import_path: myapp.utils
recursive: true
system_info:
type: callable
import_path: platform.uname
resource_groups:
code_review: [python_files, git_changes]
toolsets:
petstore:
type: openapi
spec: "https://petstore3.swagger.io/api/v3/openapi.json"
my_plugins:
type: entry_points
module: myapp
Further reading
The docs/ folder contains longer guides on the YAML configuration, resources, prompts, tools and the CLI. The API reference is on the documentation site.
Установить LLMling в Claude Desktop, Claude Code, Cursor
unyly install llmlingСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add llmling -- uvx llmlingПошаговые гайды: как установить LLMling
FAQ
LLMling MCP бесплатный?
Да, LLMling MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для LLMling?
Нет, LLMling работает без API-ключей и переменных окружения.
LLMling — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить LLMling в Claude Desktop, Claude Code или Cursor?
Открой LLMling на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
автор: GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
автор: S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
Mcp
ModelContextProtocol server for enhancing JSON Resumes
автор: mcpflow.ioVault
Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write
автор: agbergsmannAWS 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-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiCompare LLMling with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
