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トランスポートを使用してサーバーを実行します(LLMとの統合用): ```bash ./rae-mpc --transport stdio ``` または、SSEサーバーとして実行します: ```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