1. Conduid
  2. Developer Tools
  3. Z3 MCP
MCP server · Developer Tools

Z3 MCP

questionable z3 mcp server for true logical reasoning

Unclaimed MIT last commit a year ago devtools
49Fair

Scored 4 months ago · breakdown

About Z3 MCP

Z3 MCP is an MCP server published by igorwwwwwwwwwwwwwwwwwwww in the Developer Tools category: questionable z3 mcp server for true logical reasoning. It has been installed 0 times through Conduid.

The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx z3-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Z3 MCP

Powered by Claude · Grounded in docs

I know everything about Z3 MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

Z3 MCP Server

A Model Context Protocol (MCP) server that provides access to the Z3 Theorem Prover and constraint solver through standardized MCP tools.

Overview

This server exposes Z3's constraint solving capabilities through MCP, allowing AI assistants and other MCP clients to solve SMT-LIB problems using the Z3 theorem prover. The server includes optional sandboxing for secure execution.

Features

  • Z3 Integration: Execute Z3 constraint solver on SMT-LIB input
  • Configurable Timeout: Set custom timeout values for solver operations (default: 10 seconds)
  • Cross-Platform Sandboxing: Run Z3 in a sandboxed environment on macOS and Linux for enhanced security
  • MCP Protocol: Standard Model Context Protocol interface for tool integration

Prerequisites

  • Go 1.24.4 or later
  • Z3 theorem prover installed on your system
  • For sandboxing:
    • macOS: sandbox-exec command (built-in)
    • Linux: bwrap (bubblewrap) package

Installing Dependencies

Z3 Theorem Prover:

macOS (Homebrew):

brew install z3

Linux (Ubuntu/Debian):

sudo apt-get install z3

Sandboxing Dependencies:

Linux (Ubuntu/Debian):

sudo apt-get install bubblewrap

Linux (Fedora/RHEL):

sudo dnf install bubblewrap

Other platforms: See Z3's official installation guide

Installation

  1. Clone the repository:
git clone <repository-url>
cd z3-mcp
  1. Install dependencies:
go mod download
  1. Build the server:
go build -o z3-mcp-server

Usage

Basic Usage

Start the server on stdin/stdout (standard MCP mode):

./z3-mcp-server

With Sandboxing

Enable sandboxing for enhanced security:

./z3-mcp-server -sandbox

The sandboxing implementation varies by platform:

  • macOS: Uses sandbox-exec with the included z3.sb profile
  • Linux: Uses bubblewrap with network isolation and read-only filesystem access

Docker

Build and run using Docker:

docker build -t z3-mcp .
docker run -i z3-mcp

Docker with Seccomp Profile

For enhanced security, run the container with the included seccomp profile:

docker run --security-opt seccomp=./seccomp-profile.json -i z3-mcp

The seccomp profile is based on Docker's official default profile with all network-related syscalls removed, providing production-grade security while maintaining full container compatibility.

MCP Tool Interface

The server provides one MCP tool:

z3

Executes the Z3 constraint solver on SMT-LIB input.

Parameters:

  • input (string, required): The SMT-LIB input to solve
  • timeout (number, optional): Timeout in seconds for the Z3 solver (default: 10)

Example SMT-LIB input:

(declare-const x Int)
(declare-const y Int)
(assert (> x y))
(assert (= x 10))
(check-sat)
(get-model)

Security Features

Sandboxing

When enabled with the -sandbox flag, Z3 runs within a restricted sandbox that:

  • Denies network access
  • Restricts file system writes
  • Allows only necessary file reads
  • Limits process execution to Z3 only
  • Isolates process namespace (Linux)

Platform-specific implementations:

  • macOS: Uses sandbox-exec with the z3.sb profile
  • Linux: Uses bubblewrap with comprehensive filesystem and network isolation
  • Docker: Custom seccomp profile (seccomp-profile.json) restricting system calls

License

MIT License - see LICENSE file for details.

README mirrored from the source repository 4 months ago. The original is authoritative.

Questions

About Z3 MCP

How do I install Z3 MCP?

Run npx z3-mcp, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Z3 MCP safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Z3 MCP still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.