MCP REST API and CLI Client
Created at 2 months ago
by rakesh-eltropy
Categories
Tags
[]
what is MCP REST API and CLI Client?
MCP REST API and CLI Client is a simple client designed to interact with Model Context Protocol (MCP) servers, allowing users to send requests to and retrieve responses from these servers seamlessly.
how to use MCP REST API and CLI Client?
To use the client, you need to clone the repository, set up the necessary environment variables for API keys, and either run the client from the command line interface (CLI) or as a REST API.
key features of MCP REST API and CLI Client?
- Compatibility with any MCP-compatible servers and support for pre-configured default servers.
- Integration with LangChain to execute LLM prompts across multiple servers.
- Support for various LLM providers through function-based API compatibility.
use cases of MCP REST API and CLI Client?
- Sending queries to local databases and retrieving product details.
- Chatting with LLMs using specific commands.
- Searching data using Brave Search APIs integrated in the client.
FAQ from MCP REST API and CLI Client?
- What APIs does the client support?
The client supports multiple MCP-compatible servers, including SQLite and Brave Search, among others.
- How do I run the client?
You can either run it from the CLI using
uv run cli.py
or start the REST API withuvicorn app:app --reload
.
- Do I need an API key to use it?
Yes, you must set environment variables for OPENAI_API_KEY and BRAVE_API_KEY to use the associated features.
View More