Tidewave Rails

Developer toolsDocs and learning

Runtime-level MCP server for Rails development: run code, read logs, query the DB, read docs.

Your AI app calls the Tidewave Rails MCP server, which does the developer tools and docs and learning work and sends the result back to the chat.

About Tidewave Rails

Tidewave Rails is a community MCP server from tidewave-ai, filed in our directory under developer tools and docs and learning. Runtime-level MCP server for Rails development: run code, read logs, query the DB, read docs.

Tidewave Rails is listed in the official MCP registry as io.github.tidewave-ai/tidewave-rails, version 0.8.0.

At a glance

Publisher
tidewave-ai (community)
Runs
See the README for setup
Written in
Ruby
License
Apache-2.0
GitHub stars
476
Official MCP registry
io.github.tidewave-ai/tidewave-rails

How to set up Tidewave Rails

  1. Follow the install steps in the Tidewave Rails README; it is written in Ruby, so have that toolchain ready.
  2. Check the Tidewave Rails README for keys or settings; the registry lists none that Tidewave Rails requires.
  3. Add Tidewave Rails to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Tidewave Rails tools to confirm the connection.
  5. Run one read-only task with Tidewave Rails first, and keep your app asking before each tool call until the results look right.

Tidewave Rails compared with similar servers

  • QGIS (nkarasiak) by nkarasiak has fewer GitHub stars than Tidewave Rails (472 against 476); both are community servers, and both run locally.
  • Muxin by LumaryLabsLLC has more GitHub stars than Tidewave Rails (479 against 476); both are community servers, and both run locally.
  • Code Context Engine by elara-labs has fewer GitHub stars than Tidewave Rails (471 against 476); both are community servers, and both run locally.

Before you connect Tidewave Rails

  • Give Tidewave Rails its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Tidewave Rails tool call until you trust what it does with them.
  • Treat text that Tidewave Rails fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Tidewave Rails on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Tidewave Rails

How marketing and sales teams put Tidewave Rails to work, by company size. Pick the size closest to yours and start Tidewave Rails on one use case.

Small business

  • A small business with a developer can use Tidewave Rails to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Tidewave Rails to explain and fix a marketing site issue without context switching between tools.
  • A small business can use Tidewave Rails to keep help docs and how-tos current, answering customer questions before they become tickets.
  • Tidewave Rails runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Tidewave Rails to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Tidewave Rails to keep scripts and automations documented and versioned as they change.
  • Marketing teams can connect Tidewave Rails so agents write from current product docs, keeping launch copy accurate.
  • Start Tidewave Rails on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Tidewave Rails with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Tidewave Rails so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises can serve approved docs through Tidewave Rails, so every agent answers from the same source of truth.
  • Tidewave Rails is a community server, so have security review the code and pin a version before Tidewave Rails touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Tidewave Rails README

From tidewave-ai/tidewave_rails on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Tidewave Rails

Tidewave Rails is an MCP server that provides runtime-level tools for developing Ruby on Rails apps using coding agents.

Your agent will be able to use this MCP server to talk to your running Rails app in development to:

  • execute code in the context of the running app (like a Rails console for agents)
  • read the app's live logs
  • query your development database
  • get source locations of classes and methods
  • read documentation pinned to the exact gem versions your app depends on

This MCP server is an open-source component of Tidewave, the agentic development environment for Rails and Phoenix.

You can use this project as a standalone MCP server or integrated with the Tidewave product by following the instructions below.

Installation

1. Add the Tidewave gem to your app

You can add Tidewave Rails to your app by running:

bundle add tidewave --group development

or by manually adding the tidewave gem to the development group in your Gemfile:

gem "tidewave", group: :development
2. Add the Tidewave MCP to your agent/editor

Add the Tidewave MCP server to your editor or MCP client configuration as the type "http" (streamable), pointing to the /tidewave/mcp path and port your web application is running at. For example, http://localhost:3000/tidewave/mcp.

We also have specific instructions for:

Usage

As with any other MCP server, your agent will call the tools exposed by the Tidewave MCP whenever it sees fit. But you can also prompt it to call them explicitly.

Available MCP tools

project_eval

Evaluates Ruby code in the context of your running application, with access to its runtime, loaded dependencies, and in-memory data, returning the result plus anything printed to standard output. It's like a Rails console for the agent.

Your agent can use it when it would rather run code than assume behavior, grounding its next step in what the running app actually does. For example, calling a method to see what comes back or reproducing a failing code path against live app state to debug it.

execute_sql_query

Runs a SQL query against your app's development database and returns the rows to the agent.

Your agent can use it to run any SQL against your development database. For example, ask it to insert some test records to see how a page looks with realistic data. Or, after a create action, the agent can verify whether the record was saved with the expected values.

get_docs

Looks up the documentation for a class, method, or constant, reading from the exact gem versions locked in your app's Gemfile.lock.

Your agent can use it when it's unsure how a class or method works, so the code it generates is grounded in the docs for the exact versions of the gems your app uses, rather than training data that may be stale or a generic docs lookup that can't guarantee it matches the version your app depends on.

get_source_location

Returns the file and line where a class, module, or method is defined, across both your app and its dependencies.

Your agent can use it to jump straight to where a class or method is defined, by file and line, instead of grepping for it, including when the definition lives in a gem dependency.

Also, because it resolves the location from your running app instead of parsing source text, it handles metaprogramming, where a method is generated at runtime and does not appear as a literal def for grep to find.

[!NOTE]

Why no tools for routes, associations, etc?

Tidewave does not include tools for listing your routes, associations, etc. because agents are better off reading their respective source files, which gives agents more context and enables them to perform any necessary edit without additional tool calls.

Instead, Tidewave aims to fill in missing gaps, such as evaluating code inside your Rails app (without starting new instances) and finding source location, which can be tricky, even with grepping, due to metaprogramming and the different places Bundler can install your dependencies.

Troubleshooting

The Tidewave toolbar is missing

This may happen if you are compressing your responses (gzip, brotli, etc) after the Tidewave middleware runs. Use bin/rails middleware and make sure Tidewave comes after Rack::Deflater or similar. Also look into your browser and terminal logs for any errors.

Using multiple hosts/subdomains

If you are using multiple hosts/subdomains during development, you must use *.localhost, as such domains are considered secure by browsers. Additionally, add the following to config/initializers/development.rb:

config.session_store :cookie_store,
  key: "__your_app_session",
  same_site: :none,
  secure: true,
  assume_ssl: true

And make sure you are using rack-session version 2.1.0 or later.

The above will allow your application to run embedded within Tidewave across multiple subdomains, as long as it is using a secure context (such as admin.localhost, www.foobar.localhost, etc).

Content security policy

If you have enabled Content-Security-Policy, Tidewave will automatically enable "unsafe-eval" under script-src in order for contextual browser testing to work correctly. It also disables the frame-ancestors directive. This is done only in the environments that Tidewave is loadead (development by default).

Production Environment

Tidewave is a powerful tool that can help you develop your web application faster and more efficiently. However, it is important to note that Tidewave is not meant to be used in a production environment.

Tidewave will raise an error if it is used in any environment where code reloading is disabled (which typically includes production).

Configuration

You may configure tidewave using the following syntax:

  config.tidewave.team = { id: "my-company" }

The following config is available:

  • allow_remote_access - Tidewave only allows requests from localhost by default, even if your server listens on other interfaces, for security purposes. Read our security guidelines for more information and when to allow remote access (if you know what you are doing)

  • logger_middleware - The logger middleware Tidewave should wrap to silence its own logs

  • preferred_orm - which ORM to use, either :active_record (default) or :sequel

  • team - set your Tidewave Team configuration, such as config.tidewave.team = { id: "my-company" }

  • toolbar - controls whether the Tidewave toolbar is injected into HTML pages. Defaults to true

Acknowledgements

A thank you to Yorick Jacquin for the initial version of this project.

Development

Run the Minitest suite with:

bundle exec ruby -Itest test/all_test.rb

License

Copyright (c) 2025 Dashbit

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Questions about Tidewave Rails

What is the Tidewave Rails MCP server?

Runtime-level MCP server for Rails development: run code, read logs, query the DB, read docs. Tidewave Rails is maintained by tidewave-ai on GitHub at tidewave-ai/tidewave_rails, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Tidewave Rails MCP server?

Tidewave Rails doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (tidewave-ai/tidewave_rails). Like most servers, Tidewave Rails ends with a command or URL you paste into your AI app's MCP config.

Does Tidewave Rails need an API key?

The registry lists no required keys for Tidewave Rails. Check the Tidewave Rails README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Tidewave Rails an official MCP server?

No. Tidewave Rails is a community server maintained by tidewave-ai. Community servers can be excellent; read the code and the open issues before you give Tidewave Rails access to company data.

What license is Tidewave Rails under?

Tidewave Rails is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Tidewave Rails; the service it connects to has its own terms.