Gcore MCP Server

Gcore MCP Server

Enables interaction with Gcore Cloud API via LLM assistants, providing tools for managing instances, networking, storage, AI/ML, and more.

Category
访问服务器

README

Gcore MCP Server

FOSSA Status

MCP (Model Context Protocol) server for Gcore API. This server provides tools for interacting with Gcore Cloud API via LLM assistants.

Usage

Note: As we have multiple resources available, providing all of them at once to most LLM clients can overwhelm the model and lead to confusion among the tools. For most clients, it is recommended to specify only the necessary resources for your task to ensure optimal performance and clarity. Some clients, like Claude Code, handle this differently — see below.

Integration with Cursor IDE

Add the server to your Cursor IDE configuration file (~/.cursor/mcp.json):

{
  "mcpServers": {
    "gcore-mcp-server": {
      "command": "uvx",
      "args": ["--from", "gcore-mcp-server@git+https://github.com/G-Core/gcore-mcp-server.git", "gcore-mcp-server"],
      "env": {
        "GCORE_API_KEY": "4***1",
        "GCORE_TOOLS": "instances,management,cloud.gpu_baremetal.clusters.*"
      }
    }
  }
}

Integration with Claude Code

Add the server to your Claude Code configuration file (~/.claude.json):

{
  "mcpServers": {
    "gcore-mcp-server": {
      "command": "uvx",
      "args": ["--from", "gcore-mcp-server@git+https://github.com/G-Core/gcore-mcp-server.git", "gcore-mcp-server"],
      "env": {
        "GCORE_API_KEY": "4***1",
        "GCORE_TOOLS": "*"
      }
    }
  }
}

Setting GCORE_TOOLS=* loads all available tools, which works well with Claude Code thanks to its Tool Search feature. Unlike other clients, Claude Code defers tool schema loading — tool schemas are only fetched on demand when they match a query. This means registering many tools doesn't bloat the context window.

Claude Code shows a warning when tools exceed 10% of the context window. With deferred loading, this isn't an issue even with all tools enabled.

The uvx command runs the server in a temporary environment without requiring a persistent installation. See Running in a Temporary Environment for more details.

Note: You can find instructions on how to obtain a Gcore API Key here.

Optional variables:

  • GCORE_BASE_URL: "https://api.gcore.com",
  • GCORE_CLOUD_PROJECT_ID: "1",
  • GCORE_CLOUD_REGION_ID: "76",
  • GCORE_CLIENT_ID: "2",

Configuration

Tool Selection

The server uses a unified configuration approach via the GCORE_TOOLS environment variable. This single variable can contain a mix of predefined toolset names and custom patterns:

# Mixed toolsets and patterns
export GCORE_TOOLS="instances,management,cloud.gpu_baremetal.clusters.*,dns.records.create"

# Only toolsets
export GCORE_TOOLS="instances,management"

# Only patterns  
export GCORE_TOOLS="cloud.*,waap.*"

# Default behavior (if not set)
# Uses "management,instances" toolsets for HTTP mode, "management" for stdio

Configuration Modes

  1. Default Mode (no configuration)

    • HTTP transport: Uses management,instances toolsets
    • stdio transport: Uses management toolset
  2. Toolset Mode (predefined tool collections)

    • Use predefined toolset names: instances, management, ai_ml, etc.
    • Example: GCORE_TOOLS="instances,management"
  3. Pattern Mode (custom tool filtering)

    • Use wildcard patterns to match tool names from the Gcore SDK
    • Exact matches: cloud.instances.create, dns.records.delete
    • Wildcard matches: cloud.*, waap.*, cloud.gpu_baremetal.clusters.*
    • Example: GCORE_TOOLS="cloud.instances.*,waap.*"
  4. Combined Mode (toolsets + patterns)

    • Mix predefined toolsets with custom patterns
    • Toolset definitions have priority over pattern matches
    • Example: GCORE_TOOLS="instances,cloud.gpu_baremetal.clusters.*"

Available Toolsets

The system includes several predefined toolsets for common workflows:

  • management: Core account and project management
  • instances: Virtual machine operations
  • baremetal: Bare metal server operations
  • gpu_baremetal: GPU bare metal cluster management
  • gpu_virtual: GPU virtual cluster management
  • networking: Networks, Floating IPs, Load Balancers
  • security: Security Groups, SSH Keys, Secrets
  • storage: Volumes, File Shares
  • ai: AI Clusters
  • ai_ml: AI/ML inference services
  • billing: Cost reports and billing information
  • containers: Container registries
  • cleanup: Deletion and cleanup operations
  • list: List/read-only operations

Pattern Syntax

Patterns support wildcard matching using *:

  • Exact matches: cloud.instances.create matches only that specific method
  • Wildcard matches: cloud.instances.* matches all instance methods
  • Broad wildcards: cloud.* matches all cloud service methods
  • Service-specific: waap.* matches all WAAP methods

Priority System

When using combined mode:

  1. Toolset tools are included first (highest priority)
  2. Pattern-matched tools are added second
  3. Duplicates are removed while preserving order
  4. Toolset definitions take precedence over pattern matches

Examples

# Development: Get specific tools for testing
export GCORE_TOOLS="cloud.instances.create,cloud.instances.delete,cloud.volumes.create"

# Full cloud management
export GCORE_TOOLS="management,instances,storage,networking"

# GPU cluster operations with custom additions  
export GCORE_TOOLS="gpu_baremetal,cloud.instances.create,waap.*"

# All services with wildcard
export GCORE_TOOLS="cloud.*,waap.*"

# Minimal setup
export GCORE_TOOLS="instances"

Running in a Temporary Environment (One-off Execution)

If you want to run the server without installing it persistently (e.g., for a quick test or a single use), you can use uvx. This command fetches the package, runs the specified script in a temporary environment, and then discards the environment.

To run the latest version from the main branch:

uvx --from "gcore-mcp-server@git+https://github.com/G-Core/gcore-mcp-server.git" gcore-mcp-server

To run a specific version (e.g., v0.1.1):

uvx --from "gcore-mcp-server@git+https://github.com/G-Core/gcore-mcp-server.git@v0.1.1" gcore-mcp-server

Remember to set any required environment variables (like GCORE_API_KEY, GCORE_TOOLS, etc.) before running the command.

Persistent Installation (Installing as a Tool)

For detailed installation instructions for uv, please refer to the official uv installation guide.

You can install gcore-mcp-server as a command-line tool using uv. This makes the command available globally in your terminal without needing to specify the source each time.

To install the latest version from the main branch:

uv tool install "gcore-mcp-server@git+https://github.com/G-Core/gcore-mcp-server.git"

To install a specific version (e.g., v0.1.0):

uv tool install "gcore-mcp-server@git+https://github.com/G-Core/gcore-mcp-server.git@v0.1.0"

After installation, uv will make the gcore-mcp-server command available. If it's not immediately found, you might need to run uv tool update-shell or ensure uv's tool bin directory is in your PATH.

Once installed, you can run it like any other command:

gcore-mcp-server

Development

Local Development Setup

# Clone the repository
git clone https://github.com//G-Core/gcore-mcp-server.git
cd gcore-mcp-server

# Install development dependencies
uv venv
source .venv/bin/activate
uv sync --dev

Debugging and Testing

For debugging and development, it's recommended to use the MCP Inspector:

npx @modelcontextprotocol/inspector

The MCP Inspector provides a web interface to test and debug your MCP server interactively, allowing you to:

  • Explore available tools and their schemas
  • Test tool calls with different parameters
  • View real-time communication between client and server
  • Debug authentication and connection issues

To use it with your local development server:

  1. Start your MCP server locally
  2. Run the inspector and connect to your server
  3. Use the web interface to test your tools

License

FOSSA Status

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选