Loading languages...
RA

rae-mpc

@rae-api-com2

# RAE Model Context Protocol (MCP) Server 此儲存庫包含一個用於西班牙皇家學院 (RAE) API 的 Model Context Protocol (MCP) server 實作。它允許語言模型與 RAE 的字典及語言資源進行互動。 ## 需求 - Go 1.21+ ## 安裝 ```bash git clone https://github.com/rae-api-com/rae-mpc.git cd rae-mpc go build ``` ## 使用方式 ### 命令列參數 使用 stdio 傳輸執行 server(用於與 LLM 整合): ```bash ./rae-mpc --transport stdio ``` 或以 SSE server 執行: ```bash ./rae-mpc --transport sse --port 8080 ``` ### 可用工具 此 MCP server 向 LLM 公開了以下工具: 1. `search` - 搜尋 RAE API 以獲取資訊 - 參數: - `query` (必填):搜尋查詢字串 - `lang` (選填):語言代碼(預設:"es") 2. `get_word_info` - 獲取單字的詳細資訊 - 參數: - `word` (必填):要查詢的單字 - `lang` (選填):語言代碼(預設:"es") ## 與 LLM 整合 此 MCP server 可以與支援 Model Context Protocol 的語言模型整合,使其能夠存取 RAE 的語言資源,從而提升西班牙語能力。 ---

RAE
API
Language Model
MCP

RAE Model Context Protocol (MCP) Server

This repository contains an implementation of a Model Context Protocol (MCP) server for the Royal Spanish Academy (RAE) API. It allows language models to interact with RAE's dictionary and linguistic resources.

Requirements

  • Go 1.21+

Installation

git clone https://github.com/rae-api-com/rae-mpc.git
cd rae-mpc
go build

Usage

Command Line Arguments

Run the server with stdio transport (for integration with LLMs):

./rae-mpc --transport stdio

Or run it as an SSE server:

./rae-mpc --transport sse --port 8080

Available Tools

The MCP server exposes the following tools to LLMs:

  1. search - Search RAE API for information

    • Parameters:
      • query (required): The search query
      • lang (optional): Language code (default: "es")
  2. get_word_info - Get detailed information about a word

    • Parameters:
      • word (required): The word to look up
      • lang (optional): Language code (default: "es")

Integration with LLMs

This MCP server can be integrated with language models that support the Model Context Protocol, allowing them to access RAE's linguistic resources for improved Spanish language capabilities.


# mcpServer Config

{
  "mcpServers": [
    {
      "name": "rae-mpc",
      "transports": [
        "stdio",
        "sse"
      ],
      "stdioServerCommand": [
        "./rae-mpc",
        "--transport",
        "stdio"
      ],
      "sseURL": "http://localhost:8080",
      "description": "MPC Server to connect your preferred model with rae-api.com"
    }
  ]
}

# stdio

./rae-mpc --transport stdio

# sseURL

http://localhost:8080
Transport:
stdio
sse
Language:
Go
Updated: 7/23/2025