AI Tool1 credit
list_ollama_models
A discovery helper that lists models available on a local Ollama instance. Use it to find out which models you can pass to extract_with_llm for private, on-device LLM extraction. 1 credit per call.
Use Cases
Discover Available Models
List every model pulled into your local Ollama instance before kicking off extraction jobs.
Verify Ollama Setup
Quickly confirm that your Ollama server is reachable and serving the models you expect.
Pair with extract_with_llm
Programmatically pick a model name from this list and pass it straight to extract_with_llm.
Endpoint
POST
/api/v1/tools/list_ollama_modelsAuth Required
2 req/s on Free plan
1 credit
Parameters
Local-only: This tool queries an Ollama instance reachable from the calling environment. The default
http://localhost:11434 only resolves when Ollama is running on the same machine as your MCP client.| Name | Type | Required | Default | Description |
|---|---|---|---|---|
baseUrl | string | Optional | http://localhost:11434 | Base URL of the local Ollama instance to query Example: http://localhost:11434 |
Request Examples
cURL
terminalBash
curl -X POST https://crawlforge.dev/api/v1/tools/list_ollama_models \
-H "X-API-Key: cf_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"baseUrl": "http://localhost:11434"
}'TypeScript
listOllamaModels.tsTypescript
const response = await fetch('https://crawlforge.dev/api/v1/tools/list_ollama_models', {
method: 'POST',
headers: {
'X-API-Key': process.env.CRAWLFORGE_API_KEY!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
baseUrl: 'http://localhost:11434',
}),
});
const data = await response.json();
if (data.success) {
for (const model of data.data.models) {
console.log(model.name, model.size);
}
}Response Example
200 OK0.2s
{ "success": true, "data": { "base_url": "http://localhost:11434", "count": 3, "models": [ { "name": "llama3.1:8b", "size": 4700000000, "modified_at": "2026-04-20T10:00:00Z", "digest": "sha256:abc123..." }, { "name": "qwen2.5:7b", "size": 4400000000, "modified_at": "2026-04-15T08:30:00Z", "digest": "sha256:def456..." }, { "name": "mistral:7b", "size": 4100000000, "modified_at": "2026-03-30T12:15:00Z", "digest": "sha256:123456..." } ] }, "credits_used": 1, "credits_remaining": 999, "processing_time": 215}Field Descriptions
data.base_urlOllama instance that was querieddata.countNumber of models returneddata.modelsArray of installed models with name, size (bytes), modified_at, and digestcredits_used1 credit deducted per callCredit Cost
1 credit
1 credit per call
1 credit per call. A low-cost discovery helper.
Tip: Cache the response client-side if you call this on every extraction — the model list rarely changes between requests.
Related Tools
Ready to run local LLM extraction? Sign up for free and get 1,000 credits.