Metadata-Version: 2.4
Name: proprioceptive-mcp
Version: 0.1.0
Summary: MCP server for Claude Code, Cursor and other agents: ask your local model (Ollama) and see how sure it was about every word.
Author-email: Proprioceptive AI <logan@proprioceptiveai.com>
License-Expression: MIT
Project-URL: Homepage, https://proprioceptiveai.com/products.html
Project-URL: Repository, https://github.com/Loganwins/proprioceptive-confidence
Project-URL: Issues, https://github.com/Loganwins/proprioceptive-confidence/issues
Project-URL: Proprioceptive Lens, https://pypi.org/project/proprioceptive-lens/
Keywords: mcp,model-context-protocol,mcp-server,ollama,local-llm,claude-code,cursor,confidence,logprobs
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp<3,>=2.3
Requires-Dist: proprioceptive-confidence>=0.1.0
Requires-Dist: typing-extensions>=4.7
Dynamic: license-file

# proprioceptive-mcp

**Let Claude Code, Cursor and other agents ask your local model, and see how sure it was.**

An MCP server that connects any MCP-capable agent to the model running on your own machine (Ollama, or any
OpenAI-compatible server that returns token probabilities). Every answer comes back with how sure the model was
about each word, the words it hesitated on, and, for shaky short answers, whether the answer held up when
re-asked in full.

<!-- mcp-name: io.github.Loganwins/proprioceptive-mcp -->

## Install

**Claude Code**

```
claude mcp add proprioceptive -- uvx proprioceptive-mcp
```

**Cursor, Claude Desktop and other clients** (`mcp.json` / `claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "proprioceptive": {
      "command": "uvx",
      "args": ["proprioceptive-mcp", "--model", "llama3.2"]
    }
  }
}
```

Or `pip install proprioceptive-mcp` and use `"command": "proprioceptive-mcp"`.

You need a local model server: [Ollama](https://ollama.com) 0.12 or later (`ollama pull llama3.2`), or any
OpenAI-compatible server that returns logprobs (`--api openai --base-url http://127.0.0.1:8000/v1`).

## Tools

| Tool | What it does |
|---|---|
| `ask_local_model` | Asks your local model. Returns the answer, `confident` or `shaky`, the lowest word probability, the shaky words with alternatives, and a double-check for shaky short answers. |
| `list_local_models` | Lists the models your local server can run. |

Example result:

```json
{
  "answer": "1904",
  "verdict": "shaky",
  "summary": "shaky: 1 word(s) below 80%: \"190\" at 66%",
  "double_check": {"second_answer": "Albert Einstein was born in 1879.", "agrees": false}
}
```

*(Illustrative; real numbers depend on your model.)*

## Settings

| Flag | Environment | Default |
|---|---|---|
| `--model` | `PCONF_MODEL` | `llama3.2` |
| `--api` | `PCONF_API` | `ollama` |
| `--base-url` | `PCONF_BASE_URL` | `$OLLAMA_HOST` or `http://127.0.0.1:11434` |
| `--threshold` | `PCONF_THRESHOLD` | `0.8` |

Everything runs on your machine: the server only talks to the model server address you give it.

## What it can't do

A model can be wrong and certain. Token probabilities catch *shaky* answers, not confident mistakes.

## Related

- **proprioceptive-confidence**: the library underneath, with LangChain and LiteLLM adapters.
- **pytest-llm-confidence**: fail a test when the model wasn't sure of its answer.
- **Proprioceptive Lens**: the full local app, with live confidence colouring, memory and internal-state
  behaviour readings: `pip install proprioceptive-lens`.

MIT licensed. From [Proprioceptive AI](https://proprioceptiveai.com).
