MCP REST logo

MCP REST

by ivanboring

MCP REST is a REST API wrapper around the Model Context Protocol (MCP) client. It allows you to interact with MCP without maintaining a constant connection, primarily intended for testing purposes.

View on GitHub

Last updated: N/A

What is MCP REST?

MCP REST is a REST API wrapper for the Model Context Protocol (MCP) client. It provides a way to interact with MCP functionality through HTTP requests.

How to use MCP REST?

Install globally using npm install -g mcp-rest or use with npx npx mcp-rest. Configure connection type, URL, and port using command-line options. Interact with the API using HTTP requests to endpoints like /status, /tools, and /tools/:toolId.

Key features of MCP REST

  • REST API access to MCP

  • SSE connection support

  • Tool invocation via API

  • Connection status monitoring

  • Debug logging

Use cases of MCP REST

  • Testing MCP functionality

  • Integrating MCP with other systems via HTTP

  • Developing MCP clients without persistent connections

  • Automated MCP interactions

  • Debugging MCP issues

FAQ from MCP REST

How do I check the connection status?

Use the /status endpoint to verify the connection status.

How do I list available tools?

Use the /tools endpoint to retrieve a list of available tools.

How do I call a specific tool?

Use the POST method on the /tools/:toolId endpoint with the required arguments in the request body.

What if I encounter connection issues?

Use the --debug flag to see detailed logs, check the /status endpoint, and ensure your MCP server is running and accessible.

What connection types are supported?

The server supports SSE (Server-Sent Events) connection type.