# Arg2P

> Arg2P is an open-source MCP server for developer tools. Solve ASPIC+, ABA and abstract argumentation theories from an AI assistant. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Web, vscode, CLI
- **Website:** https://tuprolog.github.io/arg2p-kt/
- **Repository:** https://github.com/tuprolog/arg2p-kt
- **MCP Registry name:** io.github.tuProlog/arg2p
- **Categories:** developer tools, AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

Arg2P is a structured-argumentation solver built on the tuProlog engine. Its language server doubles as an MCP server, so an assistant can load a theory, solve it and explore the results instead of reasoning about attacks and defeats by hand.

The solver reads ASPIC+ theories as well as assumption-based and abstract frameworks, and the same API runs on the JVM, in JavaScript and in Python. The MCP server is published on PyPI as `arg2p` and runs over stdio; the pip wheel bundles a Java runtime.

The project also offers a browser playground that draws the argument graph of each solution, a VS Code extension for `.arg2p` files, and plugins for Claude Code and Codex. It is described in a peer-reviewed paper in the Journal of Logic and Computation, which makes it a fit for research and legal-reasoning work.

## Features

- **Three framework types:** Solves ASPIC+, assumption-based (ABA) and abstract argumentation theories.
- **Explorable results:** Lets an assistant walk through solutions one at a time and inspect their graphs.
- **Cross-platform engine:** Same API on the JVM, JavaScript (Node.js and browsers) and Python.
- **Web playground:** Runs the solver in the browser and imports APX, TGF and ICCMA'23 files.
- **VS Code extension:** Highlights `.arg2p` theories and shows syntax errors as you type.
- **Assistant plugins:** Install paths for Claude Code and Codex alongside the standalone MCP server.

## Good for

- Let an assistant check whether an argument survives its attackers
- Evaluate legal or normative reasoning encoded as ASPIC+ rules
- Teach or prototype argumentation semantics without writing a solver
- Convert and inspect abstract frameworks from APX or TGF files

## Install

### Claude Code (Terminal)

```sh
claude mcp add arg2p -- uvx arg2p
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "arg2p": {
      "command": "uvx",
      "args": [
        "arg2p"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "arg2p": {
      "command": "uvx",
      "args": [
        "arg2p"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "arg2p": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "arg2p"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "arg2p": {
      "command": "uvx",
      "args": [
        "arg2p"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "arg2p": {
      "command": "uvx",
      "args": [
        "arg2p"
      ]
    }
  }
}
```

## FAQ

### How do I install the MCP server?

It is on PyPI as `arg2p` (`pip install arg2p`); the wheel bundles a Java runtime.

### Can I try it without installing?

Yes, the Web Playground runs the solver in the browser.

### Which frameworks does it understand?

ASPIC+, assumption-based and abstract argumentation frameworks.

### Is Arg2P free?

Yes. Arg2P is open source, so you can use and self-host it for free.

### How do I add Arg2P to Claude Code?

Run this command in your terminal: claude mcp add arg2p -- uvx arg2p

### What are the best alternatives to Arg2P?

The closest alternatives to Arg2P are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/arg2p
