mcp-client-typescript
This project implements an MCP server in Node.js that provides a tool to search and fetch documentation snippets for popular AI/ML libraries. It uses Google to search for the latest documentation and handles timeouts and search failures gracefully.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
54
Forks
0
Issues
0
# MCP Docs Server
This project implements a Model Context Protocol (MCP) server in Node.js that provides a tool to search and fetch documentation snippets for popular AI/ML libraries.
---
## π Features
β
MCP-compliant server (using `@modelcontextprotocol/sdk`)
β
Tool: **get_docs**
β
Searches Google for latest docs using Serper API
β
Supports:
- LangChain
- LlamaIndex
- OpenAI
β
Returns plain text from documentation pages
β
Handles timeouts and search failures gracefully
---
## π Project Structure
mcp-docs-server/
βββ server.js # The MCP server implementation
βββ .env # Environment variables
βββ README.md # This file
---
## βοΈ Setup
1. **Clone the repository**
```bash
git clone <repo-url>
cd mcp-docs-server
Install dependencies
npm installCreate a
.envfileSERPER_API_KEY=your_serper_api_keyRun the MCP server
node server.js
π οΈ Usage
The server exposes one tool:
get_docs
Description:
Searches the latest documentation for a given query and library.Arguments:
query(string): e.g."Chroma DB"library(string): one of"langchain","llama-index","openai"
Returns:
Plain text content fetched from the search results.
Example usage from a compatible MCP client:
node client.js path/to/server.js
π¦ Dependencies
@modelcontextprotocol/sdkdotenvhttpxjsdom
π Notes
- The MCP server uses the Serper API for Google search.
- To get a Serper API key, visit serper.dev.
π€ Contributing
Feel free to open issues or submit pull requests!
π License
MIT License.
π Links
ππ ππ₯π¨ππ£π πΌπππππππ£.
25
Followers
119
Repositories
0
Gists
0
Total Contributions
The Lite_MCP_sdk is an SDK designed to make AI agent technology easily accessible using JavaScript. It is specifically tailored for beginners, allowing users to build remote MCP servers and clients effortlessly. Its simple interface and copy-and-paste setup make it user-friendly and ideal for those with minimal programming experience.
dive-into-mcp is a tool designed for developers to deeply explore MCP (Minimum Cost Projects) using JavaScript. It provides features aimed at enhancing project efficiency and is tailored for ease of use and extensibility. This tool is particularly suitable for intermediate developers looking to optimize their workflows.