mcpField
L
localmodels

localmodels

Local
github.com/CloudCorpRecordsAI & Agents0Updated 2w ago

About localmodels

localmodels provides an MCP interface and matching CLI for managing and using models on a locally running Ollama server. It covers model operations, generation, chat, and embeddings without an API key or account.

Key features

  1. 01List, inspect, pull, and delete models
  2. 02Copy models and list running models
  3. 03Generate completions and chat
  4. 04Create embeddings
  5. 05Configure server address with `OLLAMA_HOST`

Use cases

  1. 01Managing models installed in Ollama
  2. 02Generating text or chatting with a local model
  3. 03Creating embeddings from text

MCP support

The MCP server exposes tools for Ollama model management, generation, chat, embeddings, version, and running-model queries. It connects to the local server configured by `OLLAMA_HOST`, which defaults to `http://127.0.0.1:11434`.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"cloudcorprecords-localmodels": {
"command": "npx",
"args": [
"-y",
"@reneturcios/localmodels"
]
}
}
}
Run commandnpx -y @reneturcios/localmodels

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@reneturcios/localmodels0.1.0
ocighcr.io/cloudcorprecords/localmodels:0.1.0

Tools

10

Saved tool list · updated 1w ago

This tool takes no parameters.

Details

From the project README

localmodels

localmodels puts a locally running Ollama server behind an MCP interface (with a matching CLI). List what is installed, pull or remove models, inspect one, then generate, chat, or embed — all against models that run on your own machine.

There is no API key and no account. The server address comes from OLLAMA_HOST and defaults to http://127.0.0.1:11434. A value without a scheme gets http:// in front of it, and trailing slashes are ignored. If no Ollama server is reachable, calls fail with the underlying connection error — they never invent an empty result.

Install

npx @reneturcios/localmodels list
docker run -i ghcr.io/cloudcorprecords/localmodels

In a container, point OLLAMA_HOST at the host (for example with host networking), since 127.0.0.1 inside the container is the container itself.

CLI

localmodels list
localmodels show llama3.2
localmodels pull qwen2.5
localmodels delete old:model
localmodels copy llama3.2 my-llama
localmodels generate llama3.2 "Write a haiku about autumn"
localmodels chat llama3.2 "Hello!"
localmodels embed nomic-embed-text "some text to embed"
localmodels running
localmodels version
localmodels --version

Exit codes: 0 success, 1 server/lookup error, 2 usage error.

MCP server

npx -y @reneturcios/localmodels mcp
{
  "mcpServers": {
    "localmodels": {
      "command": "npx",
      "args": ["-y", "@reneturcios/localmodels", "mcp"],
      "env": { "OLLAMA_HOST": "http://127.0.0.1:11434" }
    }
  }
}

The env block is optional; the default address is used without it.

Tools
ToolInputUpstream route
list_models—GET /api/tags
show_modelmodelPOST /api/show
pull_modelmodelPOST /api/pull (stream: false)
delete_modelmodelDELETE /api/delete
copy_modelsource, destinationPOST /api/copy
generate_completionmodel, prompt, system (optional)POST /api/generate (stream: false)
chat_completionmodel, messages (array of {role, content})POST /api/chat (stream: false)
create_embeddingmodel, inputPOST /api/embed
list_running_models—GET /api/ps
get_version—GET /api/version

Development

npm install
npm run build
npm test
npm run dev

Tests run entirely on fake-fetch fixtures; no live Ollama server is required or contacted.

License

MIT — see LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.