Akave MCP Server

Akave MCP Server

Enables AI models to interact with Akave's S3-compatible storage by providing tools for managing storage buckets and objects through standardized Model Context Protocol (MCP).

Category
访问服务器

README

Akave MCP Server

A Model Context Protocol (MCP) server that enables AI models to interact with Akave's S3-compatible storage. This server provides a set of tools for managing your Akave storage buckets and objects through AI models like Claude and local LLMs.

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). Think of MCP like a USB-C port for AI applications - it provides a standardized way to connect AI models to different data sources and tools.

Features

  • List and manage buckets
  • Upload, download, and manage objects
  • Generate signed URLs for secure access
  • Support for both Claude and local LLMs (via Ollama)
  • Simple configuration through JSON

Prerequisites

  • Node.js 16+
  • Access to an Akave account with:
    • Access Key ID
    • Secret Access Key
    • Endpoint URL
  • For local LLM support:
    • Go 1.23 or later
    • Ollama installed

Quick Start

Create a configuration file (e.g., mcp.json):

{
  "mcpServers": {
    "akave": {
      "command": "npx",
      "args": [
        "-y",
        "akave-mcp-js"
      ],
      "env": {
        "AKAVE_ACCESS_KEY_ID": "your_access_key",
        "AKAVE_SECRET_ACCESS_KEY": "your_secret_key",
        "AKAVE_ENDPOINT_URL": "your_endpoint_url"
      }
    }
  }
}

Usage with Claude Desktop

  1. Download and install Claude for Desktop (macOS or Windows)

  2. Open Claude Desktop Settings:

    • Click on the Claude menu
    • Select "Settings..."
    • Click on "Developer" in the left-hand bar
    • Click on "Edit Config"
  3. This will create/update the configuration file at:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  4. Add the Akave MCP server configuration to the file:

{
  "mcpServers": {
    "akave": {
      "command": "npx",
      "args": [
        "-y",
        "akave-mcp-js"
      ],
      "env": {
        "AKAVE_ACCESS_KEY_ID": "your_access_key",
        "AKAVE_SECRET_ACCESS_KEY": "your_secret_key",
        "AKAVE_ENDPOINT_URL": "your_endpoint_url"
      }
    }
  }
}
  1. Restart Claude Desktop

  2. You should see a slider icon in the bottom left corner of the input box. Click it to see the available Akave tools.

Usage with Local LLMs (Ollama)

  1. Install MCPHost:
go install github.com/mark3labs/mcphost@latest
  1. Start MCPHost with your preferred model using the same configuration file:
# Using default config location
mcphost -m ollama:mistral

# Or specify a custom config file
mcphost -m ollama:mistral --config /path/to/your/mcp.json

# For debugging
mcphost --debug -m ollama:mistral --config /path/to/your/mcp.json

You can use any Ollama model, for example:

  • ollama:mistral
  • ollama:qwen2.5
  • ollama:llama2

Available Tools

The server provides the following MCP tools:

  1. list_buckets: List all buckets in your Akave storage
  2. list_objects: List objects in a bucket with optional prefix filtering
  3. get_object: Read object contents from a bucket
  4. put_object: Write a new object to a bucket
  5. get_signed_url: Generate a signed URL for secure access to an object
  6. update_object: Update an existing object
  7. delete_object: Delete an object from a bucket
  8. copy_object: Copy an object to another location
  9. create_bucket: Create a new bucket
  10. delete_bucket: Delete a bucket
  11. get_bucket_location: Get the region/location of a bucket
  12. list_object_versions: List all versions of objects (if versioning enabled)

Example Usage

Listing Buckets

# The AI model will automatically use the list_buckets tool
List all my buckets

Reading a File

# The AI model will use the get_object tool
Read the file 'example.md' from bucket 'my-bucket'

Uploading a File

# The AI model will use the put_object tool
Upload the content 'Hello World' to 'greeting.txt' in bucket 'my-bucket'

Troubleshooting

Common Issues

  1. Connection Refused

    • Ensure your Akave credentials are correct in the MCP configuration
    • Check if the endpoint URL is accessible
    • Verify your network connection
  2. File Reading Issues

    • For markdown files, ensure proper encoding
    • For binary files, use appropriate tools
    • Check file permissions
  3. Local LLM Issues

    • Ensure Ollama is running
    • Verify model compatibility
    • Check MCPHost configuration
    • Use --debug flag for detailed logs
  4. Claude Desktop Issues

    • Check logs at:
      • macOS: ~/Library/Logs/Claude/mcp*.log
      • Windows: %APPDATA%\Claude\logs\mcp*.log
    • Ensure Node.js is installed globally
    • Verify the configuration file syntax
    • Try restarting Claude Desktop

Contributing

Contributions are welcome! Please feel free to submit an issue or a pull request.

Support

For issues and feature requests, please create an issue in the GitHub repository.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选