Feedback

sample-mcp-rails

@funwarioisii Claim

Basic information

Runtime
ruby
Category
License
Not specified
Author
funwarioisii
Submitted by
Community
Quality
40
Stars
11

About sample-mcp-rails

# sample-mcp-rails\n\nThis is a sample Rails application that uses the MCP protocol to call a remote MCP server.\n\nAnd it introduces how to use `mcp-rb` gem to call the MCP server.\n\nhttps://github.com/funwarioisii/mcp-rb\n\n## How to run\n\n```bash\n# install dependencies\nbundle install\n\n# run the Rails application\nrails s\n\n# create HTTP request to the Rails application\ncurl http://localhost:3000/hello\n```\n\n## Architecture\n\nThis project has `/mcps` directory that contains the MCP server.\nThere is a sample MCP server in `mcps/hello_world.rb`.\n\nWhen the Rails application sta...

sample-mcp-rails is a MCP client in the Other category listed in the AddMCP.net directory, published by funwarioisii. Runtime: ruby. The repository has 11 GitHub stars. Source code is hosted on github.com.

sample-mcp-rails config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

sample-mcp-rails tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

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-rb gem 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-rb gem in a minimal setup

Frequently asked questions

1 What is sample-mcp-rails?

It is a sample Rails application that demonstrates calling a remote MCP server using the mcp-rb gem.

2 How do I run the application?

Run bundle install, then rails s, and finally send a curl request to http://localhost:3000/hello.

3 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.

4 How does it connect to the MCP server?

The connection is established via the Rails initializer located at config/initializers/mcp_hello_world.rb.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬