MCP.so
登录

MCP Server Project

@ateekshsoni

基本信息

分类

其他

最近更新

传输方式

stdio

作者

ateekshsoni

关于 MCP Server Project

暂无概览

MCP Server Project 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Server Project 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Model Context Protocol (MCP) Server Project?

The Model Context Protocol (MCP) Server Project is a demonstration of integration between a client application and an MCP server, enabling AI-powered interactions with tool execution. It connects to Google's Gemini AI model and allows the AI to respond to queries and execute specialized tools like posting tweets or performing arithmetic.

How to use Model Context Protocol (MCP) Server Project?

Install Node.js v14+, then set up the server: cd server, npm install, configure .env with Twitter API credentials, run node index.js. Set up the client: cd client, npm install, configure .env with a Gemini API key, run node index.js. Start the server before the client, then type requests at the command-line prompt.

Key features of Model Context Protocol (MCP) Server Project

  • AI chat interface powered by Google's Gemini model
  • Tool execution via the MCP protocol
  • Built-in tools: addTwoNumbers and createPost (Twitter/X)
  • Communication over Server-Sent Events (SSE)
  • Input validation with Zod schemas
  • Uses Express web server and twitter-api-v2

Use cases of Model Context Protocol (MCP) Server Project

  • Ask the AI to perform calculations (e.g., "What's 25 plus 17?")
  • Instruct the AI to post a tweet automatically
  • Demonstrate how MCP can extend an AI model’s capabilities
  • Prototype tool‑augmented AI assistants

常见问题

1

What tools are available on the MCP server?

The server registers two tools: `addTwoNumbers` (addition) and `createPost` (posting a tweet to Twitter/X).

2

How does the AI decide to use a tool?

The client sends user queries to Google’s Gemini AI, which can decide to make a function call. The call is routed through the MCP client to the MCP server, which executes the tool and returns results.

3

What are the prerequisites to run this project?

You need Node.js v14 or higher, npm or yarn, Twitter/X API credentials (for the server), and a Google Gemini API key (for the client).

4

How do I set up the environment variables?

Two `.env` files are required: `server/.env` with Twitter API keys (TWITTER_API_KEY, TWITTER_API_KEY_SECRET, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET) and `client/.env` with GEMINI_API_KEY.

5

What transport protocol does the MCP server use?

The client connects to the MCP server via Server-Sent Events (SSE).

评论

其他 分类下的更多 MCP 服务器