ama
Allows the server to use Google Gemini models, including the default Gemini Flash-Lite, as the LLM backend for ethical analysis.
Allows running the server with local Ollama models as the LLM backend, enabling a fully local setup with no external API key.
Supports OpenAI-compatible LLM servers via LiteLLM as the model backend for ethical-analysis stages.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ArtificialMoralAgent
Structured ethical analysis for hard decisions. Describe a dilemma. Four ethical frameworks analyse it in parallel, each giving its recommended action and how strongly it holds that view:
utilitarian: outcomes;
deontological: duties and rights;
care ethics: relationships and vulnerability;
virtue ethics: character, as judged by a council of six sages.
A Chief Moral Arbiter then blends them by conviction weight into a plain-English ruling. It shows where the frameworks agree and keeps the dissenting views.
It runs on your own computer, as a web app, a REST API and an MCP server, so AI agents and assistants can ask for an ethics check before they act.
Decision support, not an authority. ArtificialMoralAgent shows its reasoning so you can weigh it. It is not legal, medical, psychological or other professional advice. Every dilemma passes a safety triage first: people in crisis get support resources, not an analysis.
Quick start (Windows, macOS, Linux)
pipx install git+https://github.com/tgreenhaw5/ArtificialMoralAgent # or: uv tool install git+https://…
ama init # pick a preset, paste a free Gemini key, create your admin login
ama serve # http://localhost:8410 · API docs at /docsOnce the package is on PyPI, pipx install artificialmoralagent works too.
There is no database to set up. AMA stores everything in SQLite with vector search in ~/.ama. Use
Postgres + pgvector when you serve many people (see Self-hosting).
No key yet? The default model is Google's Gemini Flash-Lite, and a free key takes two minutes: how to get one. Prefer nothing leaving your machine? Choose the local preset with Ollama.
Related MCP server: Laguarde
Use it from your tools
MCP (Claude Desktop, Claude Code, Cursor, VS Code), with ama on your PATH:
{ "mcpServers": { "ama": { "command": "ama", "args": ["mcp"] } } }The MCP tools are evaluate_dilemma, quick_check, compare_options, explain_framework and
search_precedents (details).
REST API:
ama keys create my-app # prints ama_xxxx_… once
curl -s http://localhost:8410/api/v1/evaluations \
-H "Authorization: Bearer ama_xxxx_…" -H "Content-Type: application/json" \
-d '{"dilemma": "My manager asked me to backdate a contract to meet a deadline. Should I comply?"}'Add ?stream=true to receive each stage as it finishes. See the API reference.
How it works
dilemma ─► safety triage ─┬─► utilitarianism ─┐
(always first) ├─► deontology ├─► Chief Moral Arbiter ─► ruling, majority action,
├─► care ethics │ (weighted conviction dissenting views, steps
└─► virtue council ─┘ blend)Any model provider via LiteLLM: Gemini, Claude, OpenAI-compatible servers, or local Ollama. Each stage can use a different model, for example a cheap triage and a strong arbiter.
Knowledge base: evaluated dilemmas are searchable by meaning (vector search), and repeated questions are answered from the cache.
Extensible: add an ethical tradition as a plug-in (Frameworks).
Read the reasoning: the white paper explains the frameworks and the arbiter.
Documentation
Gemini key · Self-hosting & public demo · API · MCP · Models · Frameworks · Safety & limitations · Upgrading from AMA 2.x
Contributing
New ethical frameworks, evaluation cases, translations and fixes are welcome. Start with CONTRIBUTING.md. To report a security problem, see SECURITY.md.
Licensed under Apache-2.0.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pre-execution governance for AI agents. Deterministic PASS/FAIL/REVIEW verdicts, replayable proof.
Register every AI agent, log every action, prove it. EU AI Act compliance built in.
Authorize AI agent tool calls before they run: policy-as-code, human approval, signed receipts.
See, price, and control every tool call your AI agents make: policy checks, cost, and audit tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to log, evaluate, and ground consequential decisions against an organization's authority graph, creating a traceable audit trail for governance.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI coding agents to evaluate actions against team-defined policies, record decisions, and obtain human approvals for potentially risky operations.63 npm1-
- AlicenseBqualityDmaintenanceProvides AI governance and action-assurance primitives, enabling trust scoring, policy-based allow/deny decisions, risk assessment, EU AI Act compliance checks, and an emergency kill-switch for autonomous agents.651 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables governed tool-calling agents with policy decisions, optional human approval, hash-chained audit logging, and deterministic evaluation.MIT