Skip to main content

MCP server for the Autoform API from Slovensko.Digital

Project description

Autoform MCP Server

Model Context Protocol (MCP) server for the Autoform service from Slovensko.Digital based on the API documentation.

Author: @alhafoudh

Features

  • Search Slovak corporate bodies (companies, organizations) by name
  • Search by registration number (IČO/CIN)
  • Filter results to show only active (non-terminated) entities
  • Returns detailed company information including addresses and tax IDs

Installation

From PyPI (recommended)

pip install autoform-mcp

Or using uvx to run directly without installation:

uvx autoform-mcp

From source

# Clone the repository
git clone https://github.com/alhafoudh/autoform-mcp.git
cd autoform-mcp

# Install dependencies
uv sync

Configuration

Set the AUTOFORM_PRIVATE_ACCESS_TOKEN environment variable with your API token from Slovensko.Digital.

export AUTOFORM_PRIVATE_ACCESS_TOKEN="your-token-here"

Usage

Run the MCP server (STDIO transport)

# If installed from PyPI
autoform-mcp

# Or using uvx
uvx autoform-mcp

# Or from source
uv run python autoform_mcp.py

Run with FastMCP CLI

uv run fastmcp run autoform_mcp.py

Inspect available tools

uv run fastmcp inspect autoform_mcp.py

Development mode with MCP Inspector

uv run fastmcp dev autoform_mcp.py

Available Tools

query_corporate_bodies

Search Slovak corporate bodies using a query expression.

Parameters:

  • query (string, required): Query expression in format field:value
  • limit (integer, optional): Maximum number of results (1-20, default 5)
  • active_only (boolean, optional): If true, return only active entities

Query format:

  • name:<value> - Search by company name prefix
  • cin:<value> - Search by IČO (registration number) prefix

Examples:

query_corporate_bodies(query="name:Slovenská pošta")  # Find companies starting with "Slovenská pošta"
query_corporate_bodies(query="cin:36631124")          # Find company with IČO 36631124
query_corporate_bodies(query="cin:366", limit=10)     # Find companies with IČO starting with "366"
query_corporate_bodies(query="name:Test", active_only=True)  # Only active companies

Available Resources

autoform://api-info

Returns information about the Autoform API and this MCP server.

Claude Code Integration

Using uvx (recommended)

Run the server directly from PyPI without installation:

claude mcp add autoform -e AUTOFORM_PRIVATE_ACCESS_TOKEN=your-token-here -- uvx autoform-mcp

Using local installation

If you've cloned the repository:

claude mcp add autoform -e AUTOFORM_PRIVATE_ACCESS_TOKEN=your-token-here -- uv run python /path/to/autoform_mcp.py

Claude Desktop Integration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

Using uvx (recommended)

{
  "mcpServers": {
    "autoform": {
      "command": "uvx",
      "args": ["autoform-mcp"],
      "env": {
        "AUTOFORM_PRIVATE_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Using local installation

{
  "mcpServers": {
    "autoform": {
      "command": "uv",
      "args": ["run", "python", "/path/to/autoform-mcp.py"],
      "env": {
        "AUTOFORM_PRIVATE_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Development

Install dev dependencies

uv sync --all-extras

Run tests

uv run pytest -v

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoform_mcp-0.1.6.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoform_mcp-0.1.6-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file autoform_mcp-0.1.6.tar.gz.

File metadata

  • Download URL: autoform_mcp-0.1.6.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for autoform_mcp-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ad379c1c89981a3ee1152abd8bf46f0fec32d08433e833a4080a3431e4677ee2
MD5 f02465e8aa0e2f2a4bacae5ae081a3a1
BLAKE2b-256 93e8ecc676a74c1173ad85ee2f0accd56908969189e3454c52e03b51a1044aa2

See more details on using hashes here.

File details

Details for the file autoform_mcp-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: autoform_mcp-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for autoform_mcp-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb2f8eeeea757fd5fc81fa9d3aa70f5b87789c9bb0a4b6d5ab1c09f28ba3cd5
MD5 e9eeaa8814edfe46a9a878d8d56c83e7
BLAKE2b-256 3fe652128136df0e80e4f5140961ba68af7b8d0d0fea08cb06b5d508164316cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page