
sample mcp rails
一个使用 MCP 协议调用远程服务器的示例 Rails 应用程序。
Repository Info
About This Server
一个使用 MCP 协议调用远程服务器的示例 Rails 应用程序。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
sample-mcp-rails
This is a sample Rails application that uses the MCP protocol to call a remote MCP server.
And it introduces how to use mcp-rb gem to call the MCP server.
https://github.com/funwarioisii/mcp-rb
How to run
# install dependencies
bundle install
# run the Rails application
rails s
# create HTTP request to the Rails application
curl http://localhost:3000/hello
Architecture
This project has /mcps directory that contains the MCP server.
There is a sample MCP server in mcps/hello_world.rb.
When the Rails application starts, it will connect to the MCP server.
see: config/initializers/mcp_hello_world.rb
Quick Start
Clone the repository
git clone https://github.com/funwarioisii/sample-mcp-railsInstall dependencies
cd sample-mcp-rails
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.