loading…
Search for a command to run...
loading…
An MCP server that integrates with Poe's API to provide AI-powered search and research tools from Perplexity, Reka, Exa, and Linkup.
An MCP server that integrates with Poe's API to provide AI-powered search and research tools from Perplexity, Reka, Exa, and Linkup.
A Swift MCP (Model Context Protocol) server providing AI-powered search and research tools via the Poe API proxy. Supports 4 providers with 16 specialized tools.
If you found this helpful, you can support more open source work!
This server acts as a bridge between MCP clients and multiple AI/search providers through Poe's unified API:
| Provider | Tools | Description |
|---|---|---|
| Perplexity | 3 | Web search with citations, reasoning, deep research |
| Reka | 3 | Agentic research, fact-checking, similarity finding |
| Exa | 9 | Neural search, code context, company research, crawling |
| Linkup | 1 | #1 ranked factual accuracy on OpenAI's SimpleQA |
apt-get install libcurl4Via NPM (no build required):
npx @mehmetbaykar/swift-poe-search-mcp@latest
Via Swift (build from source):
git clone https://github.com/mehmetbaykar/swift-poe-search-mcp.git
cd swift-poe-search-mcp
swift build -c release
# Required
export POE_API_KEY=your_api_key
# Optional
export POE_BASE_URL=https://api.poe.com/v1 # default
export POE_TIMEOUT_MS=600000 # default: 10 minutes
export ENABLED_PROVIDERS=perplexity,reka,exa,linkup # default: all
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"swift-poe-search": {
"command": "npx",
"args": ["@mehmetbaykar/swift-poe-search-mcp@latest"],
"env": {
"POE_API_KEY": "your_api_key"
}
}
}
}
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"swift-poe-search": {
"command": "npx",
"args": ["@mehmetbaykar/swift-poe-search-mcp@latest"],
"env": {
"POE_API_KEY": "your_api_key"
}
}
}
}
Add to ~/.claude/settings.json:
{
"mcpServers": {
"swift-poe-search": {
"command": "npx",
"args": ["@mehmetbaykar/swift-poe-search-mcp@latest"],
"env": {
"POE_API_KEY": "your_api_key"
}
}
}
}
POE_API_KEY=your_key npx @modelcontextprotocol/inspector@latest swift run
perplexity_askConversational web search using Sonar API with 200k context.
| Parameter | Type | Default | Description |
|---|---|---|---|
| messages | [Message] | required | Conversation messages |
| searchContextSize | enum | low | low, medium, high |
| searchMode | enum | default | default, academic, sec |
| searchDomainFilter | string | "" | Comma-separated domains (prefix with - to exclude) |
| searchLanguageFilter | string | "" | ISO 639-1 codes (max 10) |
| searchRecencyFilter | enum | none | none, day, week, month, year |
| searchAfterDate | string | "" | Publication date filter |
| searchBeforeDate | string | "" | Publication date filter |
| country | string | "" | ISO 3166-1 alpha-2 code |
| region | string | "" | State/Province name |
| city | string | "" | City name |
| latitude | string | "" | Requires longitude + country |
| longitude | string | "" | Requires latitude + country |
| returnImages | bool | false | Include images |
| returnVideos | bool | false | Include videos |
| imageDomainFilter | string | "" | Domains for images (max 10) |
| imageFormatFilter | string | "" | gif, jpg, png, webp |
perplexity_reasonR1-1776 reasoning with web search via Sonar Reasoning Pro (128k context).
All parameters from perplexity_ask plus:
| Parameter | Type | Default | Description |
|---|---|---|---|
| showThinking | bool | false | Show <think>...</think> reasoning tags |
perplexity_researchDeep multi-step research via Perplexity Deep Research (128k context).
| Parameter | Type | Default | Description |
|---|---|---|---|
| messages | [Message] | required | Conversation messages |
| showThinking | bool | false | Show reasoning tags |
| reasoningEffort | enum | low | low, medium, high |
| searchMode | enum | default | Only "default" supported |
| searchDomainFilter | string | "" | Comma-separated domains |
| searchAfterDateFilter | string | "" | Date filter |
| searchBeforeDateFilter | string | "" | Date filter |
| lastUpdatedAfterFilter | string | "" | Update date filter |
| lastUpdatedBeforeFilter | string | "" | Update date filter |
reka_researchAutonomous research agent with multi-hop web synthesis.
| Parameter | Type | Default | Description |
|---|---|---|---|
| messages | [Message] | required | Conversation messages |
| showThinking | bool | false | Show reasoning tags |
reka_verify_claimFact-check claims with structured verdict, confidence, and reasoning.
| Parameter | Type | Default | Description |
|---|---|---|---|
| claim | string | required | Statement to verify |
| showThinking | bool | false | Show reasoning tags |
reka_find_similarFind items similar to a target based on specific attributes.
| Parameter | Type | Default | Description |
|---|---|---|---|
| target | string | required | Item to find similarities for |
| attribute | string | required | Characteristic to compare (e.g., "functionality", "style") |
| showThinking | bool | false | Show reasoning tags |
exa_web_searchReal-time web search with extensive filtering options.
| Parameter | Type | Default | Description |
|---|---|---|---|
| query | string | required | Search query |
| numResults | int | 10 | Results count (1-100) |
| searchType | enum | auto | auto, neural, deep, fast |
| category | enum | "" | company, research paper, news, pdf, github, tweet, etc. |
| showContent | bool | false | Display full page content |
| includeDomains | string | "" | Domains to include |
| excludeDomains | string | "" | Domains to exclude |
| includeText | string | "" | Required text (max 5 words) |
| excludeText | string | "" | Excluded text (max 5 words) |
| startCrawlDate | string | "" | ISO 8601 date |
| endCrawlDate | string | "" | ISO 8601 date |
| startPublishedDate | string | "" | ISO 8601 date |
| endPublishedDate | string | "" | ISO 8601 date |
| returnText | bool | true | Fetch page text |
| textMaxChars | string | "" | Limit text length |
| includeHtmlTags | bool | false | Preserve HTML structure |
| returnHighlights | bool | false | AI-selected key snippets |
| highlightsSentences | int | 3 | Sentences per highlight (1-10) |
| highlightsPerUrl | int | 3 | Highlights per result (1-10) |
| highlightsQuery | string | "" | Guide highlight selection |
| returnSummary | bool | false | AI-generated summaries |
| summaryQuery | string | "" | Guide summary generation |
| livecrawl | enum | fallback | fallback, never, always, preferred |
| subpages | int | 0 | Linked subpages (0-10) |
| subpageTarget | string | "" | Keyword for subpages |
| showThinking | bool | false | Show reasoning tags |
exa_deep_searchComprehensive search with automatic query expansion using deep mode.
| Parameter | Type | Default | Description |
|---|---|---|---|
| objective | string | required | Natural language search description |
| searchQueries | string | "" | Optional keyword queries (comma-separated, max 5) |
Plus all filtering parameters from exa_web_search.
exa_code_contextCode examples and API documentation search.
| Parameter | Type | Default | Description |
|---|---|---|---|
| query | string | required | Code/API search query |
| codeTokens | enum | dynamic | dynamic, 5000, 10000, 20000 |
| showThinking | bool | false | Show reasoning tags |
exa_crawl_urlExtract content from specific URLs.
| Parameter | Type | Default | Description |
|---|---|---|---|
| url | string | required | URL to crawl |
| maxCharacters | int | 3000 | Max characters to extract |
| returnText | bool | true | Fetch page text |
| includeHtmlTags | bool | false | Preserve HTML |
| returnHighlights | bool | false | Key snippets |
| highlightsSentences | int | 3 | Sentences per highlight |
| highlightsPerUrl | int | 3 | Highlights per result |
| highlightsQuery | string | "" | Guide highlights |
| returnSummary | bool | false | AI summaries |
| summaryQuery | string | "" | Guide summaries |
| livecrawl | enum | preferred | fallback, never, always, preferred |
| subpages | int | 0 | Linked subpages |
| subpageTarget | string | "" | Subpage keyword |
| showThinking | bool | false | Show reasoning tags |
exa_find_similarFind pages similar to a given URL.
| Parameter | Type | Default | Description |
|---|---|---|---|
| url | string | required | Source URL |
| numResults | int | 10 | Results count (1-100) |
| category | enum | "" | Content category filter |
| includeDomains | string | "" | Domains to include |
| excludeDomains | string | "" | Domains to exclude |
Plus content extraction parameters (returnText, highlights, summaries, livecrawl, subpages).
exa_company_researchCompany research with curated business sources.
Pre-configured domains: bloomberg.com, reuters.com, crunchbase.com, sec.gov, linkedin.com, forbes.com, businesswire.com, prnewswire.com
| Parameter | Type | Default | Description |
|---|---|---|---|
| companyName | string | required | Company to research |
| numResults | int | 5 | Results count |
| startPublishedDate | string | "" | ISO 8601 date |
| endPublishedDate | string | "" | ISO 8601 date |
| returnText | bool | true | Fetch page text |
| returnHighlights | bool | false | Key snippets |
| returnSummary | bool | false | AI summaries |
| livecrawl | enum | fallback | Content freshness |
| showThinking | bool | false | Show reasoning tags |
exa_linkedin_searchLinkedIn-specific search for profiles and companies.
| Parameter | Type | Default | Description |
|---|---|---|---|
| query | string | required | LinkedIn search query |
| searchType | enum | all | profiles, companies, all |
| numResults | int | 5 | Results count |
| returnText | bool | true | Fetch page text |
| returnHighlights | bool | false | Key snippets |
| returnSummary | bool | false | AI summaries |
| livecrawl | enum | fallback | Content freshness |
| showThinking | bool | false | Show reasoning tags |
exa_quick_answerQuick LLM answer with search-backed citations.
| Parameter | Type | Default | Description |
|---|---|---|---|
| query | string | required | Question to answer |
| showText | bool | false | Show text under citations |
| showThinking | bool | false | Show reasoning tags |
exa_deep_researchComprehensive AI-powered research agent.
| Parameter | Type | Default | Description |
|---|---|---|---|
| instructions | string | required | Research question/instructions |
| model | enum | exa-research | exa-research (15-45s), exa-research-pro (45s-2min), exa-research-fast |
| showThinking | bool | false | Show reasoning tags |
linkup_searchFactually accurate web search (ranked #1 on OpenAI's SimpleQA benchmark).
| Parameter | Type | Default | Description |
|---|---|---|---|
| messages | [Message] | required | Conversation messages |
| depth | enum | standard | standard (fast), deep (comprehensive) |
Sources/
├── Core/
│ ├── API/
│ │ ├── Config.swift # Environment configuration
│ │ ├── PoeAPIClient.swift # HTTP client
│ │ └── PoeTypes.swift # Request/response models
│ ├── Helpers/
│ │ ├── ContentStripper.swift # Strips <think> tags
│ │ └── With.swift # Functional builder
│ ├── Providers/
│ │ ├── ToolProvider.swift # Tool factory
│ │ ├── ServerProvider.swift # MCP server setup
│ │ └── ... # Other providers
│ ├── Tools/Search/
│ │ ├── Perplexity/ # 3 tools
│ │ ├── Reka/ # 3 tools
│ │ ├── Exa/ # 9 tools
│ │ └── Linkup/ # 1 tool
│ └── Environment.swift # @TaskLocal DI
└── swift-poe-search-mcp/
└── swift_search_mcp.swift # Entry point
Tests/
├── Perplexity/
├── Reka/
├── Exa/
├── Linkup/
└── Environment/ # Test utilities
# Run all tests
POE_API_KEY=your_key swift test
# Run specific provider tests
POE_API_KEY=your_key swift test --filter "PerplexityToolTests"
POE_API_KEY=your_key swift test --filter "ExaToolsTests"
# Run specific tool test
POE_API_KEY=your_key swift test --filter "webSearchTool"
Test Architecture:
@Test, @Suite)@TaskLocal environment injection for test isolationimport Foundation
import MCPToolkit
struct MyNewTool: MCPTool {
let name = "my_new_tool"
let description: String? = "Tool description"
@Schemable
@ObjectOptions(.additionalProperties { false })
struct Parameters: Sendable {
let query: String
let showThinking: Bool?
}
func call(with arguments: Parameters) async throws(ToolError) -> Content {
let model = "model-name"
let messages = [PoeMessage(role: "user", content: arguments.query)]
do {
let response = try await Environment.current.poeAPIClient().performChatCompletion(
messages,
model,
nil, // extra_body parameters
!(arguments.showThinking ?? false)
)
return [ToolContentItem(text: response.content)]
} catch let error as PoeError {
throw ToolError(error.localizedDescription)
}
}
}
ToolProvider.swift:if config.isProviderEnabled(.myProvider) {
tools += [MyNewTool()]
}
Tests/MyProvider/MyProviderToolTests.swift:import Testing
@testable import Core
@Suite(.testEnvironment)
struct MyProviderToolTests {
@Test func myNewTool() async throws {
let tool = MyNewTool()
let result = try await tool.call(with: .init(query: "test"))
#expect(!result.isEmpty)
}
}
https://api.poe.com/v1/v1/chat/completionsAuthorization headerextra_body fieldstruct PoeMessage {
let role: String // "user", "assistant", "system"
let content: String
}
struct PoeResponse {
let content: String
let citations: [String]?
let usage: TokenUsage?
}
apt-get install libcurl4MIT
Run in your terminal:
claude mcp add swift-poe-search-mcp -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.