floci-mcp
floci-mcp
MCP 服务器,让 AI 代理能够在本地 Floci 实例上部署和管理 AWS 形态的资源——"使用这些参数启动一个 EC2 实例","创建一个 S3 存储桶和一个 DynamoDB 表",等等。
功能
Floci 在 http://localhost:4566 上模拟 76 个 AWS 服务。floci-mcp 将该端点以三个工具的形式暴露给任何兼容 MCP 的客户端:
aws_call(service, action, params)— 对 Floci 调用任何 AWS API 操作(任何服务、任何操作)。这是核心工具:由于它是对 AWS API 的薄透传,因此无需为每个操作手工构建工具即可覆盖全部 76 个服务。floci_status()— 检查 Floci 是否可达。floci_inventory()— 在一次调用中汇总当前在 S3、DynamoDB、Lambda、EC2、SQS、SNS、ECS 和 RDS 上部署的内容。
Related MCP server: AWS MCP Server
前提条件
Python 3.10+
正在运行的 Floci 实例——有关
floci start或 Docker 设置,请参阅 Floci README。
安装
从克隆安装(尚未发布到 PyPI):
git clone https://github.com/Awilliv/floci-mcp.git
cd floci-mcp
pip install -e .一旦发布到 PyPI:
pip install floci-mcp配置
环境变量,全部可选:
Variable | Default | Purpose |
|
| Floci 的 HTTP 端点 |
|
| 传递给每个 boto3 客户端的区域 |
|
| 凭据;12 位数字值选择 Floci 账户(多账户隔离) |
|
| 凭据(任何非空值均可用于 Floci) |
使用示例
注册到 MCP 客户端后,可以这样向代理提问:
"使用 ami-00000000 启动一个 t3.micro 实例类型的 EC2 实例"
"创建一个名为
reports的 S3 存储桶和一个名为users的 DynamoDB 表,分区键为id"
代理通过 aws_call 驱动这些操作——它已经知道 AWS API 参数形状,因此无需为每个服务提供工具即可工作。
注册到 MCP 客户端
Claude Code
在此显式设置 AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY(而不是依赖启动 shell 的环境)可以避免在您在其他地方导出了真实 AWS 凭据时意外使用它们签署请求。
claude mcp add floci -- floci-mcp或者添加到 .mcp.json:
{
"mcpServers": {
"floci": {
"command": "floci-mcp",
"env": {
"FLOCI_ENDPOINT_URL": "http://localhost:4566",
"AWS_ACCESS_KEY_ID": "test",
"AWS_SECRET_ACCESS_KEY": "test"
}
}
}
}Claude Desktop
添加到 claude_desktop_config.json:
{
"mcpServers": {
"floci": {
"command": "floci-mcp",
"env": {
"FLOCI_ENDPOINT_URL": "http://localhost:4566",
"AWS_ACCESS_KEY_ID": "test",
"AWS_SECRET_ACCESS_KEY": "test"
}
}
}
}Open WebUI(通过 mcpo)
Open WebUI 使用 OpenAPI/工具调用,而不是直接使用 MCP。使用 mcpo 作为 floci-mcp 的前端,将其暴露为 OpenAPI 服务器:
pip install mcpo
mcpo --port 8000 -- floci-mcp然后在 Open WebUI 中,转到 设置 → 工具 → 添加工具服务器,并添加 http://localhost:8000。mcpo 会将环境变量传递给其启动的 floci-mcp 进程,因此在启动 mcpo 之前,请在运行它的 shell 中设置 FLOCI_ENDPOINT_URL 等。
开发
pip install -e ".[test]"
pytesttests/test_integration.py 中的集成测试需要正在运行的 Floci 实例,当无法访问时会自动跳过。
许可证
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI agents to deploy applications to AWS with DevOps capabilities by automatically inferring infrastructure needs from code and generating inspectable Infrastructure as Code specifications.1515Apache 2.0
- AlicenseBqualityDmaintenanceEnables management and provisioning of AWS resources like EC2, S3, and RDS using natural language prompts through the Model Context Protocol. It allows users to automate complex infrastructure tasks, such as setting up VPCs and security groups, via a chat interface.54927MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with AWS services (EC2, S3, Lambda, DynamoDB, etc.) through the Model Context Protocol, allowing natural language management of cloud resources.2
- AlicenseNot gradedqualityFmaintenanceProvides conversational access to LocalStack AWS services (S3, DynamoDB, Lambda, SQS) through natural language, enabling local cloud infrastructure management without real AWS costs.MIT
Related MCP Connectors
Compare, estimate, and deploy cloud infrastructure across AWS, GCP, and Azure for AI agents.
Designs, prices, and deploys AWS/GCP cloud infrastructure from plain-English requirements.
Create and manage AI agents that collaborate and solve problems through natural language interacti…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Awilliv/floci-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server