自动生成MCP服务器
斯洛文尼亚Autoform服务的模型上下文协议(MCP)服务器。基于数字 API文档.
作者 @阿尔哈福
特性
- 按名称搜索斯洛伐克法人团体(公司、组织)
- 按注册号搜索(IČO/CIN)
- 筛选结果以仅显示活动(非终止)实体
- 返回详细的公司信息,包括地址和税号
快速入门(托管版)
使用Autoform MCP的最简单方法是通过我们的托管版本 https://autoform.fastmcp.app/mcp 使用流式HTTP模式。无需安装。
获取您的API代币
若要使用Autoform API,您需要一个专用访问令牌:
- 注册 付费访问 在 斯洛文尼亚。数字自动表格
- 注册后,您将收到您的私人访问令牌
认证
使用以下方法之一传递Autoform API令牌(按优先级顺序):
- 认证头 (推荐):
Authorization: Bearer - 自定义页眉:
x-autoform-private-access-token:
隐私声明
您的代币在我们这里是安全的。 我们非常重视隐私:
- 您的API代币是 从未存储 在我们的服务器上
- 令牌仅用于代表您对Autoform API的请求进行身份验证
- 我们不会以任何方式记录、跟踪或利用您的凭据
- 所有通信均通过HTTPS加密
Claude代码集成(托管)
claude mcp add autoform --transport http --header "Authorization: Bearer your-token-here" https://autoform.fastmcp.app/mcpClaude桌面集成(托管)
添加到您的Claude桌面配置(~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"autoform": {
"type": "streamable-http",
"url": "https://autoform.fastmcp.app/mcp",
"headers": {
"Authorization": "Bearer your-token-here"
}
}
}
}Make.com集成(托管)
您可以在中使用Autoform MCP服务器 Make.com (前身为Integromat)使用 MCP客户端-调用工具 应用程序:
- 添加 MCP客户端-调用工具 模块到您的场景
- 使用以下设置创建新的MCP服务器连接:
- 统一资源定位符: https://autoform.fastmcp.app/mcp - API密钥/访问令牌:您的私人访问令牌来自 斯洛文尼亚。数字自动表格
- 选择
query_corporate_bodies工具并配置查询参数
______________________________________________________________________
自托管安装
来自PyPI(推荐)
pip install autoform-mcp或者使用uvx直接运行而无需安装:
uvx autoform-mcp来源
# Clone the repository
git clone https://github.com/alhafoudh/autoform-mcp.git
cd autoform-mcp
# Install dependencies
uv sync配置
设置 AUTOFORM_PRIVATE_ACCESS_TOKEN 来自的API令牌的环境变量 斯洛文尼亚。数字.
export AUTOFORM_PRIVATE_ACCESS_TOKEN="your-token-here"用法
运行MCP服务器(STDIO传输)
# If installed from PyPI
autoform-mcp
# Or using uvx
uvx autoform-mcp
# Or from source
uv run python autoform_mcp.py使用FastMCP CLI运行
uv run fastmcp run autoform_mcp.py检查可用工具
uv run fastmcp inspect autoform_mcp.pyMCP Inspector开发模式
uv run fastmcp dev autoform_mcp.py可用工具
查询_公司_商品
使用查询表达式搜索斯洛伐克法人团体。
参数:
query(字符串,必填):格式为的查询表达式field:valuelimit(整数,可选):最大结果数(1-20,默认5)active_only(boolean,可选):如果为true,则仅返回活动实体
查询格式:
name:-按公司名称前缀搜索cin:-按IČO(注册号)前缀搜索
示例:
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可用资源
autoform://api-info
返回有关Autoform API和此MCP服务器的信息。
Claude代码集成(自托管)
使用uvx(推荐)
直接从PyPI运行服务器,无需安装:
claude mcp add autoform -e AUTOFORM_PRIVATE_ACCESS_TOKEN=your-token-here -- uvx autoform-mcp使用本地安装
如果您已经克隆了存储库:
claude mcp add autoform -e AUTOFORM_PRIVATE_ACCESS_TOKEN=your-token-here -- uv run --directory /path/to/autoform-mcp python autoform_mcp.pyClaude桌面集成(自托管)
添加到您的Claude桌面配置(~/Library/Application Support/Claude/claude_desktop_config.json):
使用uvx(推荐)
{
"mcpServers": {
"autoform": {
"command": "uvx",
"args": ["autoform-mcp"],
"env": {
"AUTOFORM_PRIVATE_ACCESS_TOKEN": "your-token-here"
}
}
}
}使用本地安装
{
"mcpServers": {
"autoform": {
"command": "uv",
"args": ["run", "--directory", "/path/to/autoform-mcp", "python", "autoform_mcp.py"],
"env": {
"AUTOFORM_PRIVATE_ACCESS_TOKEN": "your-token-here"
}
}
}
}发展
安装开发依赖项
uv sync --all-extras运行测试
uv run pytest -v许可证
麻省理工学院
