SuperAPIAI Directory

local-ai-mcp-servers

github.com · AI developer platforms

local-ai-mcp-servers is an open-source project hosted on GitHub that provides two self-hostable Model Context Protocol (MCP) servers for local AI scenarios. mcp-modelmanager lets MCP clients such as Claude and ChatGPT manage their own model machines, including reading GPU memory, disk, running services and container status, pulling and deleting models, switching the model used by the vLLM inference service, building custom Ollama variants, and running LoRA training; mcp-ollama-vllm lets AI sessions directly call local models to complete language tasks such as writing, summarization, classification, and structured data extraction, featuring JSON output with schema validation and automatic retry on violations. The two servers are independent of each other and can run separately or simultaneously; processes communicate only with the local machine or local/private networks, and refuse public addresses at startup. The project requires Python 3.11+ (modelmanager) or 3.10+ (ollama-vllm), has only two direct dependencies, mcp and httpx, can be installed from PyPI, requires no account, paid service, or cloud resources, and is licensed under MIT.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

local-ai-mcp-servers is aimed at users who want to run and schedule local large models on their own hardware. It provides two servers based on the Model Context Protocol (MCP), enabling Claude, ChatGPT, or other MCP clients to operate a local model machine or directly call local models to complete language tasks. The project emphasizes self-hosting and privacy first: the models and the machines they run on remain on the user's own hardware, and the server processes do not actively access public addresses.

The two servers

mcp-modelmanager

Used to manage your own model machine through AI tools, with main capabilities including:

  • Reading machine status: GPU memory, disk, running services, containers.
  • Pulling and deleting models.
  • Switching the vLLM inference service to another model.
  • Building custom Ollama variants and running LoRA training.

This server does not provide free-form remote control tools; each operation is a fixed template, parameters first pass through an allowlist and are independently validated on both ends. The repository contains both the client/server code that AI tools connect to and the machine-side scripts, wrappers, and network protection templates that run on the model machine and are used to lock it down.

mcp-ollama-vllm

Used to directly call local models within an AI session to complete language work, such as writing, summarization, classification, and extracting structured data. Its feature is JSON output with schema validation, checked by its own zero-dependency validator, with automatic retry on violations; behavior is consistent whether the backend is configured as Ollama or vLLM. It is a model invocation rather than an agent: it provides no tools, file access, or shell.

The two are complementary: mcp-ollama-vllm only queries the model read-only and holds no management privileges; mcp-modelmanager is responsible for managing the machine. The separate design prevents query calls from accidentally gaining management privileges.

Usage

Both servers can be installed from PyPI, and after installation each provides a console entry point (mcp-modelmanager / mcp-ollama-vllm), which MCP clients can point their command directly to. The required environment variables differ by server: mcp-modelmanager requires at least three MM_* fields at startup, while mcp-ollama-vllm can use default values for local Ollama. Complete installation and registration steps (including the path based on a code checkout rather than PyPI, and running from source) require consulting the README in each server directory; for mcp-modelmanager client setup see SETUP.md, and for the machine side see MACHINE.md.

Regarding dependencies: mcp-modelmanager requires Python 3.11 or later, and mcp-ollama-vllm requires 3.10 or later; each server has only two fixed direct dependencies (mcp and httpx), and mcp indirectly brings in packages such as anyio, pydantic, starlette, uvicorn, jsonschema, and pyjwt. The full dependency tree is pinned in each server's uv.lock, CI uses uv lock --check to verify that the lock file matches pyproject.toml, and tests run on the locked dependency tree. No account, paid service, or cloud resource is required.

Security and Limitations

The two server processes run on the user's own hardware and communicate only with the local machine or a local/private network; they reject public addresses at startup and resolve names to prevent DNS-based bypass of the protection. This constraint applies only to the servers' own traffic.

Note: the AI tools that drive these servers (such as Claude and ChatGPT) are usually hosted services themselves, so the instructions the user gives and the tool inputs and results pass through that provider, just like any other MCP call. "Local" refers to the model, the model machine, and its data; it does not mean that what the user inputs will not reach a third party. If needed, a local model can be used to drive them.

Model downloads are a separate matter: calling fetch_model in mcp-modelmanager is an operation the user actively triggers, in which the model machine connects to public model registries. With the default source="ollama", the machine's own Ollama daemon pulls ordinary model names from registry.ollama.ai, or from the registry pointed to by a prefixed name (such as hf.co/user/repo); source="huggingface" accesses Hugging Face directly. switch_service does not access a registry; if the model is not on the machine, it refuses and prompts the user to use fetch_model first.

The repository stores no credentials; mcp-modelmanager's SSH keys are located outside the repository in ~/.ssh, and .gitignore also excludes key and .env patterns. Machine-specific values in the documentation and templates are placeholders or environment variables and must be filled in during setup. Each server has its own SECURITY.md describing the actual trust boundaries and layers and explicitly listing unresolved issues.

Use Cases

  • Viewing and managing model services through an AI client on your own GPU machine.
  • Needing local model output of structured JSON data (such as classification and information extraction) with automatic validation and retry.
  • Wanting to hand language tasks to a local model while retaining independent administrative control over the model machine.

License

Both servers are under the MIT license; see the LICENSE file in each directory for details.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools