一个可扩展的模型上下文协议服务器,提供对社交平台数据和链上数据的标准访问。当前支持通过Neynar API的Farcaster,并预留了Twitter集成的位置。不久将添加更多平台,包括Telegram以及链上数据。
git clone https://github.com/yourusername/beyond-mcp-server.git
cd beyond-mcp-server
npm install
.env文件cp .env.example .env
# 编辑.env文件中的API密钥
配置环境变量
.env文件中设置NEYNAR_API_KEY构建并启动服务器
npm run build
npm start # 对于stdio模式(默认)
# 或者
npm run start:http # 对于HTTP/SSE模式
npm run build
确保你的.env文件正确配置了API密钥
.env:
在Claude桌面版配置中添加服务器:
{
"mcpServers": {
"beyond-social": {
"command": "/usr/local/bin/node",
"args": [
"/full/path/to/beyond-mcp-server/dist/index.js",
"--stdio"
]
}
}
}
{
"mcpServers": {
"beyond-social": {
"command": "/usr/local/bin/node",
"args": [
"/full/path/to/beyond-mcp-server/dist/index.js",
"--stdio"
],
"env": {
"NEYNAR_API_KEY": "YOUR_API_KEY_HERE",
"ENABLE_FARCASTER": "true",
"ENABLE_TWITTER": "false"
}
}
}
}
social://{platform}/{query}/search - 在平台上搜索内容social://{platform}/user/{userId}/profile - 获取用户资料social://{platform}/wallet/{walletAddress}/profile - 根据钱包地址获取用户资料(仅限Farcaster)social://{platform}/user/{userId}/balance - 获取用户的钱包余额(仅限Farcaster)
social://{platform}/wallet/{walletAddress}/profile - 根据钱包地址获取用户资料social://{platform}/user/{userId}/content - 获取特定用户的帖子social://{platform}/thread/{threadId} - 获取对话线程social://{platform}/trending - 获取热门话题social://{platform}/trending-feed - 获取热门内容提要,支持多提供商(仅限Farcaster)
social://{platform}/channels/search - 在平台上搜索频道(仅限Farcaster)
social://{platform}/channels/bulk-search - 并行搜索多个频道(仅限Farcaster)
search-content - 在社交平台上搜索内容get-user-profile - 获取用户资料信息get-user-profile-by-wallet - 根据钱包地址获取用户资料(仅限Farcaster)get-user-balance - 获取用户的钱包余额(仅限Farcaster)
get-user-content - 获取特定用户的帖子get-thread - 获取对话线程get-trending-topics - 获取当前热门话题getTrendingFeed - 获取热门内容提要,支持多提供商(仅限Farcaster)get-wallet-profile - 根据钱包地址获取资料search-channels - 在平台上搜索频道(仅限Farcaster)
search-bulk-channels - 并行搜索多个频道(仅限FFarcaster)
analyze-thread - 分析社交媒体线程summarize-user-activity - 概述用户活动explore-trending-topics - 探索平台上的热门话题analyze-search-results - 分析查询结果explore-trending-feed - 分析不同提供商的热门内容提要get-wallet-profile - 获取并分析基于钱包地址的用户资料check-user-balance - 分析用户的钱包余额和持有量
explore-channels - 分析和探索平台上的频道
explore-bulk-channels - 并行分析和比较多个频道
要添加一个新的社交平台提供商:
src/providers/目录下创建一个新的目录ContentProvider接口示例:
import { ContentProvider } from '../interfaces/provider';
export class MyPlatformProvider implements ContentProvider {
public name = 'myplatform';
public platform = 'myplatform';
// 实现所有必需的方法
}
npm run dev # stdio模式
npm run dev:http # HTTP模式
npm test
npm run lint
npm run lint:fix
MIT
欢迎贡献!请随时提交Pull Request。
所有重要的更改都会记录在此文件中。