Skip to main content
Glama
attomaton

mini-crm

by attomaton

mini-crm — MCP server for customer leads

An MCP server in Python (official mcp SDK v2) that gives an AI agent such as Claude Code access to a simple lead CRM stored in SQLite.

Type

Name

What it does

Tool

add_lead

create a lead (name, phone, message)

Tool

list_leads

list leads, optionally filtered by status

Tool

update_status

change status: new / in_progress / done

Resource

crm://stats

number of leads in each status

Prompt

daily_report

template: "review today's new leads"

How it works

  • Tool parameters and outputs are typed (type hints + a Pydantic model), so the SDK generates JSON schemas the agent can follow.

  • Expected errors are raised as ToolError, so the agent sees a readable message (e.g. Lead with id=999 not found).

  • All SQL queries are parameterized; status values are restricted with Literal.

Related MCP server: Outlet das Cores CRM

Setup

python -m venv .venv
# Windows: .venv\Scripts\python.exe -m pip install -r requirements.txt
# macOS/Linux: .venv/bin/python -m pip install -r requirements.txt

Test

python test_client.py      # calls every tool over stdio, no Claude needed
mcp dev server.py          # MCP Inspector in the browser (requires Node.js)

Connect

Claude Code

claude mcp add --scope user --transport stdio mini-crm -- /full/path/.venv/bin/python /full/path/server.py
claude mcp list

Codex — ~/.codex/config.toml

[mcp_servers.mini-crm]
command = "/full/path/.venv/bin/python"
args = ["/full/path/server.py"]

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "mini-crm": {
      "command": "/full/path/.venv/bin/python",
      "args": ["/full/path/server.py"]
    }
  }
}

On Windows the Python path is C:\...\.venv\Scripts\python.exe.

The database path can be set with the CRM_DB_PATH environment variable (default: leads.db next to server.py).

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables LLM agents to perform complete database operations on SQLite databases, including creating tables, executing queries, and managing data through CRUD operations with schema inspection capabilities.
    22 npm
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Integrates CRM data with AI agents to manage leads, track pipeline statistics, and search price catalogs via Supabase. It enables automated lead creation, stage updates, and history tracking through natural language commands.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables querying and interacting with a SQLite CRM database of sales leads using natural language, offering tools for pipeline summaries, lead search, and weighted forecasting.
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to manage CRM data including companies, contacts, prospects, pipelines, forecasts, and tasks via typed MCP tools, with local SQLite storage and a JSON CLI.
    MIT