
mcp client typescript
The MCP Docs Server is a Node.js implementation of a Model Context Protocol (MCP) server that provides a powerful tool to search and retrieve up-to-date documentation snippets from popular AI/ML libraries. It leverages the Serper API to perform Google searches restricted to specific documentation domains, extracts meaningful content using web
Repository Info
About This Server
The MCP Docs Server is a Node.js implementation of a Model Context Protocol (MCP) server that provides a powerful tool to search and retrieve up-to-date documentation snippets from popular AI/ML libraries. It leverages the Serper API to perform Google searches restricted to specific documentation domains, extracts meaningful content using web
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
# 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 install -
Create a
.envfileSERPER_API_KEY=your_serper_api_key -
Run 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
- Model Context Protocol (MCP)
- Serper API
Quick Start
Clone the repository
git clone https://github.com/anasyakubu/mcp-client-typescriptInstall dependencies
cd mcp-client-typescript
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.