sample-mcp-rails
@funwarioisii
About sample-mcp-rails
Overview
What is sample-mcp-rails?
sample-mcp-rails is a sample Rails application that uses the MCP (Model Context Protocol) protocol to call a remote MCP server. It demonstrates how to integrate the mcp-rb gem into a Rails application for MCP communication.
How to use sample-mcp-rails?
Install dependencies with bundle install, start the Rails server with rails s, then send an HTTP request to http://localhost:3000/hello using curl. The application automatically connects to the MCP server on startup via the initializer at config/initializers/mcp_hello_world.rb.
Key features of sample-mcp-rails
- Sample Rails app showcasing MCP client integration
- Uses the
mcp-rbgem for MCP communication - Includes a sample MCP server in
mcps/hello_world.rb - Automatically connects to MCP server on Rails startup
- Provides a curl endpoint for testing MCP calls
Use cases of sample-mcp-rails
- Learning how to integrate MCP protocol in a Rails application
- Testing MCP server communication via HTTP requests
- Experimenting with the
mcp-rbgem in a minimal setup
FAQ from sample-mcp-rails
What is sample-mcp-rails?
It is a sample Rails application that demonstrates calling a remote MCP server using the mcp-rb gem.
How do I run the application?
Run bundle install, then rails s, and finally send a curl request to http://localhost:3000/hello.
What does the MCP server contain?
The sample MCP server is defined in mcps/hello_world.rb and is automatically connected when the Rails application starts.
How does it connect to the MCP server?
The connection is established via the Rails initializer located at config/initializers/mcp_hello_world.rb.
Basic information
More Other MCP clients
Roamzy
roamzy-ioAgent-native global eSIM over MCP — an AI agent buys one eSIM for 193 countries, anonymously, per-MB in USDT/USDC crypto, and earns 20% referral forever. Claude/Cursor/Continue + any MCP client.
Dify Connect MCP
difybaseAnirudh's Chat
kamathA simple NextJS MCP client with sensible keybindings
SocialBu
socialbu.comConnect Claude, ChatGPT, Cursor, OpenClaw, Hermes Agent, and other MCP-compatible AI assistants to SocialBu. Create posts, use AI tools, review schedules, check analytics, and manage social media work through natural con
Llama MCP Streamlit
nikunj2003AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).
Comments